473,408 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Append from Access To Linked Table SLow

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
2 6176
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Scott | last post by:
I have a customer that had developed an Access97 application to track their business information. The application grew significantly and they used the Upsizing Wizard to move the tables to SQL...
4
by: robboll | last post by:
When I try to use an append query from an oracle link it takes forever. I am exploring the idea of doing an append action using a pass-through query. If I have an Oracle ODBC connection to...
2
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
22
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
6
by: onnodb | last post by:
Hi all, While working on an Access UI to a MySQL database (which should be a reasonable, low-cost, flexible interface to the DB, better than web-based, much less costly than a full-fledged .NET...
3
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we...
2
by: ARC | last post by:
Just curious if anyone is having issues with Acc 2007 once the number of objects and complexity increases? I have a fairly large app, with many linked tables, 100's of forms, queries, reports, and...
4
by: franc sutherland | last post by:
Hello, I am using Access 2003. I am having trouble trapping the "can't append all the records in the append query" error message when appending data to a query from a table which is linked to...
10
by: MeeMee | last post by:
Hi I have a problem appending data into an oracle table from access. I imported the new data from an excel sheet into a table in access and useed an append query to add the data into a linked...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.