2012年3月25日星期日

Bcp to insert the records from .dbf file into a sql database table

Hi

i need to inser the .dbf file records into sql table.

How should i go about it?

regards,

Kiran

Care to expand on what a .dbf file is and what it looks like inside?

/Kenneth

|||Hi Kiran, Have you used BCP before? Is your question concerning how to use BCP or do you need instructions on using the FoxPro and Visual FoxPro OLE DB data provider to set up your BCP? What have you tried to do so far? What troubles have you had? -- Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP cindy_winegarden@.msn.com www.cindywinegarden.com wrote in message news:8e96aa4b-3e3f-4bdb-a8b3-ae949f3a059d@.discussions.microsoft.com...
> i need to inser the .dbf file records into sql table. >
> How should i go about it?|||Hi KeWin, DBF-extension tables can be created by several different apps, but in general they are FoxPro or Visual FoxPro tables. They are readable via the FoxPro and Visual FoxPro OLE DB data provider, and older tables are also readable via the FoxPro and Visual FoxPro ODBC drivers. -- Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP cindy_winegarden@.msn.com www.cindywinegarden.com wrote in message news:2db5480f-3d86-4f78-8f62-cac33c9222c9@.discussions.microsoft.com...
> Care to expand on what a .dbf file is and what it looks like inside? >
> /Kenneth >
>|||

Hi,

yes i have used bcp to export data in a csv file to a remote machine. But now i want to make a bulk insert of data from a dbf file to sql server 2000 database table.

This can be done through DTS but my question is that is it possible by bcp? if yes then how?

~Kiran

|||Hi Kiran, Rather than BCP you could set up a linked server and then use Insert Into ..... Select. -- Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP cindy_winegarden@.msn.com www.cindywinegarden.com wrote in message news:ccc1df84-24a5-4cc1-9b78-86e7674d6ccb@.discussions.microsoft.com...
> Hi, >
> yes i have used bcp to export data in a csv file to a remote machine.
> But now i want to make a bulk insert of data from a dbf file to sql
> server 2000 database table. >
> This can be done through DTS but my question is that is it possible by
> bcp? if yes then how? >
> ~Kiran > > >
>

没有评论:

发表评论