Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to use BCP to export out to a Access table

Status
Not open for further replies.

jakeir

Programmer
Apr 7, 2009
25
US
Hi,
I want to use BCP to export a table out to MS Access.

I would use something like this to expot out to a text file.
EXEC master..xp_cmdshell'bcp "Select * from test..emp" queryout "c:\dept.txt" -c -T -x'

Does anyone know how to do this to Access instead of a text file?

Also, I do know other ways to do this like SSIS or pass through queries, but I would relly like to do this through BCP if I can.

Thank you


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top