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 |
|
khaberst
Starting Member
2 Posts |
Posted - 2008-04-03 : 13:15:34
|
| Hey guys I am trying to do a SELECT statement that will allow me to export a table to a .txt file? how can I do this.ex.Select * from XXXXXX (what do I need to but XXXXXX table into a txt file)Thank you. |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2008-04-03 : 13:16:42
|
| Use export/Import wizard. |
 |
|
|
khaberst
Starting Member
2 Posts |
Posted - 2008-04-03 : 13:20:33
|
quote: Originally posted by sodeep Use export/Import wizard.
I am using a custom interface that doesn't have that option. I can only use code. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-04-04 : 02:11:14
|
| Read about bcp in sql server help fileMadhivananFailing to plan is Planning to fail |
 |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2008-04-05 : 23:48:11
|
| And you can call bcp with xp_cmdshell in your code. |
 |
|
|
|
|
|