By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,635 Members | 2,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,635 IT Pros & Developers. It's quick & easy.

Append from Access To Linked Table SLow

P: n/a
Hello,

I am using Access 2000 and SQLServer 2000.

I have 2 tables - one in Access and one in SS. They are identical in
structure.
I want to copy the Access or local table ( table_local)
to the SS table ( table_SS).

strSql = "INSERT into table_SS Select * from table_Local"
dbsCurr.Execute strSql, dbFailOnError

This takes a very, very long time.
Is there another mechanism to use here?
Is there a straight forward way to just append?
Is BULK Insert available here?

Thanks in advance.

Regards,
bruce

Aug 10 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
DTS, (Data Transformation Services) will probably be your fastest
option. You can use SQL Server Enterprise Manager to create and save a
DTS script and then execute this from VB. The problem with this method
is that you need the SQL Server DMO object libraries. Another option is
to export the data to text and then use BCP or BULK INSERT to load the
SQL Server table.

An alternative but slower method is to open an ADO recordset on the SQL
Server table, and a DAO recordset on the Jet (Access) table, then loop
through the latter and populate the former. You should find all the code
to do this if you search the newsgroups.

nospam wrote:
Hello,

I am using Access 2000 and SQLServer 2000.

I have 2 tables - one in Access and one in SS. They are identical in
structure.
I want to copy the Access or local table ( table_local)
to the SS table ( table_SS).

strSql = "INSERT into table_SS Select * from table_Local"
dbsCurr.Execute strSql, dbFailOnError

This takes a very, very long time.
Is there another mechanism to use here?
Is there a straight forward way to just append?
Is BULK Insert available here?

Thanks in advance.

Regards,
bruce
Aug 10 '07 #2

P: n/a
Thanks John.

The DTS solution worked. That's one I didn't think of ....

Regards,
bruce

"John Winterbottom" <jo*****@rogers.cawrote in message
news:5i*************@mid.individual.net...
DTS, (Data Transformation Services) will probably be your fastest option.
You can use SQL Server Enterprise Manager to create and save a DTS script
and then execute this from VB. The problem with this method is that you
need the SQL Server DMO object libraries. Another option is to export the
data to text and then use BCP or BULK INSERT to load the SQL Server table.

An alternative but slower method is to open an ADO recordset on the SQL
Server table, and a DAO recordset on the Jet (Access) table, then loop
through the latter and populate the former. You should find all the code
to do this if you search the newsgroups.

nospam wrote:
>Hello,

I am using Access 2000 and SQLServer 2000.

I have 2 tables - one in Access and one in SS. They are identical in
structure.
I want to copy the Access or local table ( table_local)
to the SS table ( table_SS).

strSql = "INSERT into table_SS Select * from table_Local"
dbsCurr.Execute strSql, dbFailOnError

This takes a very, very long time.
Is there another mechanism to use here?
Is there a straight forward way to just append?
Is BULK Insert available here?

Thanks in advance.

Regards,
bruce

Aug 10 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.