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
 SQL Server Administration (2000)
 hi,

Author  Topic 

vipinM
Starting Member

9 Posts

Posted - 2007-05-19 : 01:18:54


I want to export data from sql server to ms access using BCP utility. The data will be extracted using a query involving more than 1 tables.

Can you please help me out.

I am executing the following command from command prompt

bcp DBName.dbo.ZONE_MASTER_TEMP in C:\db1.mdb -c -t , -r \n -Ssql -Usa -Psa

and i m also trying following

bcp DBName.dbo.ZONE_MASTER_TEMP in C:\db1.mdb -Ssql -Usa -Psa


It creates db1.mdb but when trying to open the mdb file it gives error saying "Unrecognized database format 'C:\db1.mdb' "

Thanks & Regards

vipin

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-05-19 : 20:36:10
Better to use tds.
Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

7020 Posts

Posted - 2007-05-20 : 12:20:38
You will not be able to use BCP for that.

You should look into using DTS for this. The Data Transformation Service Inport/Export Wizard (DTSWIZ.EXE) will walk you through the steps.





CODO ERGO SUM
Go to Top of Page
   

- Advertisement -