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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Reading and writing result set to/from a file in a SP

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-04-12 : 08:33:03
Bharat writes "I an new to SQL server and was wondering if it is possible for me to run queries in a SP and write the result set to a file (lets say ASCII file). Later, can I read data from this ascii file in the SP and then lets say use it to insert values in some tables? Is it possible to do this?"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-04-12 : 08:33:25
It's possible, but probably not necessary. You can put the data into a temp table or table variable and use it later, there's no point in exporting it just to import it later.
Go to Top of Page
   

- Advertisement -