Alec, there are couple of ways to do this in Microsoft SQL Server.
- Use a DTS (Data Transformation Services) package to output the query
results to a text file (SQL Server 7.0 and above)
- Run the query from command line, using isql.exe or osql.exe by passing
the query and the output file name as parameters
- In Query Analyzer, you can save the output to a file, from the File menu
HTH,
Vyas, MVP (SQL Server)
Check out my SQL Server website @
http://vyaskn.tripod.com/
----- Original Message -----
From: "Alex Harasic" <aharasic_at_terra.cl>
To: <pen-test_at_securityfocus.com>
Sent: Wednesday, March 13, 2002 5:05 PM
Subject: Send output to file in SQL
Hi, I've been looking around for ways to send output
to a file in a sql query. I know there is one for mySQL
but not for msSQL.
Anyone knows a way to send the output in a query
without using extended procedures?
Alex S. Harasic
aharasic_at_terra.cl
----------------------------------------------------------------------------
This list is provided by the SecurityFocus Security Intelligence Alert (SIA)
Service. For more information on SecurityFocus' SIA service which
automatically alerts you to the latest security vulnerabilities please see:
https://alerts.securityfocus.com/
----------------------------------------------------------------------------
This list is provided by the SecurityFocus Security Intelligence Alert (SIA)
Service. For more information on SecurityFocus' SIA service which
automatically alerts you to the latest security vulnerabilities please see:
https://alerts.securityfocus.com/
Received on Mar 17 2002