I have two access databases and would like to find a way to copy tables from one
database to the other. The copied table has to keep the same strucure and data.
I already tried to fiddle around with sqlBulkcopy but all information i can found about it
is using sqlBulkCopy to tranfer tables to sql server.
Can I use sqlBulkCopy to copy tables between mdb files or is there another way to do this ?
views:
267answers:
2
+3
A:
Try this:
insert into [AccessTable]
select * from [MS Access;DATABASE=D:\My Documents\db2.mdb].[AccessTable2]
Anton Gogolev
2009-07-30 10:31:05
Got it working, thanks. Only one problem, this does not copy the keys and indexes.
Mez
2009-07-30 18:18:02