![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I would like to use OSQL command to spool the output of a query to a text file. snip |
#3
| |||
| |||
|
|
-----Original Message----- In article <2eb401c3c4a2$81e4afe0$7d02280a (AT) phx (DOT) gbl>, LC anonymous (AT) discussions (DOT) microsoft.com> writes Hi, I would like to use OSQL command to spool the output of a query to a text file. snip Why not use BCP? Any additional formatting options should be possible through a format file. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org . |
#4
| |||
| |||
|
|
-----Original Message----- Hi, I can't use bCP as it doesn't support stored procedure calling. Any other solution? -----Original Message----- In article <2eb401c3c4a2$81e4afe0$7d02280a (AT) phx (DOT) gbl>, LC anonymous (AT) discussions (DOT) microsoft.com> writes Hi, I would like to use OSQL command to spool the output of a query to a text file. snip Why not use BCP? Any additional formatting options should be possible through a format file. -- Darren Green (SQL Server MVP) DTS - http://www.sqldts.com PASS - the definitive, global community for SQL Server professionals http://www.sqlpass.org . . |
![]() |
| Thread Tools | |
| Display Modes | |
| |