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.
Author |
Topic |
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2006-09-14 : 09:39:16
|
Juan writes "Juan writes "Hahaha, i think this is a hard one!!!I need to create a File BUT from a Query, not with DTS and Stuff like that... How???With something like this (If exists)Select * from Table Into File 'c:\File.ext'That's All...Thanks!!!Juan Esteban(SQL 2000)(WIN 2000) --> Mine(Win 2000 Server) --> SLQ Server"" |
|
X002548
Not Just a Number
15586 Posts |
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2006-09-14 : 10:42:12
|
may be this:osql -SServername -E -h-1 -s"," -q"Set Nocount On Select * from SomeTable" -o x.txt or in the QA,go to Tools, Options, Results tabSet Default Results target combo to "Results to file...."Set Results output format to whatever you wish toRun the query, provide file name & path when promptedand BINGO !!!!Harsh AthalyeIndia."Nothing is Impossible" |
|
|
|
|
|