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.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 problem in using bcp

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-10-11 : 08:09:27
bhupal writes "Hi all,

I am executing the following query.

exec master.dbo.xp_cmdshell 'bcp gitsdotnet..contacts out d:\testing.xls -n -Upchavali -Prajah321 -Spier1server '

This working fine .

How to use the -f option here. and one more thing if the any one of the column has more data it is showing some unread data.

Can you find problem?

Any suggestions will be appreciated.

Thanks,
Bhupal."

nr
SQLTeam MVY

12543 Posts

Posted - 2005-10-11 : 16:29:25
see
http://www.nigelrivett.net/SQLTsql/BCP_quoted_CSV_Format_file.html

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -