Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Stored procedure (possible to read txt files?)

Author  Topic 

pazzy11
Posting Yak Master

145 Posts

Posted - 2008-05-21 : 11:16:34
Hi
I have decided to approach the problem here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=103310

by using a Stored procedure, someone mentioned it's possible
for a SP to read the contents of a text file ?

IS it ?

For example i have a DB table
with fields to,from,subject,body

problem is the body field references a file (full path)
and i need to extract all info into a txt file
the full txt body, so can i perform some sort of inner
operation on the select body .. part of the SP ?







rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-05-21 : 22:50:17
Can try set linked server to text file.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-05-22 : 06:04:44
Also read about OPENROWSET in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -