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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert dbse to sql

Status
Not open for further replies.

apascual

Programmer
Jun 17, 2003
11
PH
how to convert dbf file to sql table?
ex. i have tblcustomer.dbf & tblCust sql table. i want to insert all the data from tblcustomer.dbf to tblCust table.

pls help! thanks a lot.
 
Assuming SQL2000 or better. Open up Enterprise manager, select your database, Right-click and pick All Tasks|Import Data. This takes you to the DTS wizard. Just do it from there if you want a one-time import, or you can save a VB version at the end of the wizard if you need to do it programmatically

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
without using the Task\Import utility. i need to convert the
dbf file daily. is there an existing syntax for this?
 
Yes, it's all done for you by the DTS wizard, including writing a complete commented VB module ready for your use. Run it once to generate the code, then include the module in your own app, calling it where needed.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top