mcolson (mcolson1590 (AT) gmail (DOT) com) writes:
Quote:
I am trying to create a stored procedure to write out to a text file.
I would like it to write a line for each instance of a select
statement. Any help?
Write information Where field1 = String |
In addition to Plamen's answer: normally you don't write to text files
from SQL at all. You just return data to the client, and the client
would write to the text file. BCP and SSIS that Plamen mentioned are
examples of specialised such clients that are good of extracting lots
of data.
--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx