April 8, 2010 at 12:33 am
Hi,
In my table i have a column ie,
File Path values is "E\temp\a1.jpg"
Table1
Column name is Path
"E\temp\a1.jpg"
"E\temp\a2.jpg" etc...
Can we find that jpg is exist or not exist in Computer? is it possible in Sql server?
April 8, 2010 at 12:58 am
you can use something like
Exec Master.dbo.xp_fileexist YOUR_COLUMN_NAME
Go thro this article to know more about xp_FileExist
http://www.sqlservercentral.com/articles/Stored+Procedures/xpfileexist/183/
April 8, 2010 at 3:04 am
THANKS GREAT.....
April 8, 2010 at 12:03 pm
Glad it helped you buddy 🙂
Cheers!!
April 8, 2010 at 9:26 pm
As a side bar, try this and imagine the possibilities... 😉
EXEC Master.dbo.xp_Dirtree 'E:\temp',1,1
--Jeff Moden
Change is inevitable... Change for the better is not.
April 8, 2010 at 11:03 pm
xp_Dirtree , an extended stored procedure looks like a very good option to check for the files and folder in directory. 🙂
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply