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)
 BCP(Bulk Copy Program)

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-07-21 : 09:41:04
Vivek Mishra writes "I a fresher in sql server 2000 and i want o send my data from sql server to text file . for tat I want to use BCP .

But when I re\un the BCP command Error message give
[Microsoft][ODBC SQL drivers] Syntax error or access violation


I need help from A to Z about BCP.

With Regards

Vivek"

nr
SQLTeam MVY

12543 Posts

Posted - 2006-07-21 : 10:16:25
exec master..xp_cmdshell 'bcp mdb..mytbl out c:\myfile.txt -Smyserver -T -c -t,'

have a look in bol (books online) but that's something like what you need.

==========================================
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 -