Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find size of a file

Status
Not open for further replies.

Bell1991

Programmer
Aug 20, 2003
386
US
I am receiving a file and it could be empty.. How do i check the size of the file and if it is 0 then don't try to import in?
 
If you are using SQL 2000 you can use the extended stored procedure xp_getfiledetails to find this information. You can see some examples of how to use this procedure at
Denny
MCSA (2003) / MCDBA (SQL 2000)
MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration)
MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005)

My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top