|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
sql output to txt file
I've got the sql written properly, I get the rows I need to the screen.
What can I add to get them exported into a txt, tab delimited file that will save in a certain location? |
|
#2
|
|||
|
|||
|
You need to take the data our from a table to a text file using bcp utility.
bcp database.dbo.tablename out outputpath.txt /servername /Uusername /Ppassword /c Use SQL servers books online for syntax help on BCP. |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > sql output to txt file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|