[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Transfer Records from SQL Server to MS Access

Asked by CascadeGeneral in Microsoft Access Database, MS SQL Server, Visual Basic Programming

Tags: Microsoft, Office, Access 2003

BACKGROUND

1) I have the following tables in SQL Server DB:
    SQL_TABLE1  with fields:  F1A, F1B, F1C
    SQL_TABLE2  with fields:  F2A, F2B, F2C

2) I have the following table in MS Access DB:
    MDB_Table1  with fields: M1A, M1B, M1C

3) I need to query the records in Table1 and Table2.  The record filter is based on the following SQL    
    selection string:
    "SELECT [SQL_TABLE1].[F1A], [SQL_TABLE1].[F1B], [SQL_TABLE2].[F2C]" & _
    "FROM [SQL_TABLE1] INNER JOIN [SQL_TABLE2]" & _
    "ON [SQL_TABLE1].[F1A] = [SQL_TABLE2].[F2A]" & _
    "WHERE [SQL_TABLE1].[F1A] = John,


QUESTION

What is the best (fastest?) way to transfer the selected records from the SQL Server tables to the Access DB table using ADO?  Is it to build a separate recordset, and then dump the recordset into the Access DB table?  Or is it to transfer directly into the MDB?  Also, I cannot use Access linked tables or queries as any part of my solution.

The above example is simplified, and I am actually querying 4-5 tables at a time, with +60 fields each, and +100,000 records each table.

Please provide code for you solution if at all possible, as I am having a very hard time figuring out how to write the code to copy/transfer the records into the Access DB.


[+][-]06/10/08 02:51 PM, ID: 21755422Accepted Solution

Your question has an Asker Certified™ answer! CascadeGeneral verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zones: Microsoft Access Database, MS SQL Server, Visual Basic Programming
Tags: Microsoft, Office, Access 2003
Sign Up Now!
Solution Provided By: bandriese
Participating Experts: 2
Solution Grade: A
 
 
Related Solutions
Keywords: Transfer Records from SQL Server to …
 
Loading Advertisement...
 
[+][-]06/10/08 11:51 AM, ID: 21753896Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06/10/08 12:32 PM, ID: 21754297Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06/11/08 08:50 AM, ID: 21761340Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100308-EE-VQP-141 / EE_QW_2_20070628
Your technology problems solved.
Close See Plans and Pricing. Try it FREE for 30 days.