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 |
|
Gbergna
Starting Member
2 Posts |
Posted - 2005-09-29 : 09:57:31
|
| Hi.I´m a new SQL user, and I´m trying to export SQL tables to TXT tables with the BCP function. It works perfect, but I can´t bring the field names to the TXT files. I don´t see any parameter that could do that for me. Can anyone give a hint about how to do it?The command I am using now is:EXEC master..xp_cmdshell 'bcp "SELECT * FROM ema.dbo.RFMACUMALT" queryout "c:\tablas data mining\rfmACUMALT.txt" -S HP-ML350 -T -n -c'goThanks |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
Gbergna
Starting Member
2 Posts |
Posted - 2005-09-29 : 14:02:04
|
| Thanks a lot! I´ll see if I can make it work... |
 |
|
|
|
|
|