• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Import Data from SQL Server to MS Access Table

I am trying to import data from a SQL Server Table to MS Access Table. Could any help me on can I get it done?


I am using ADODB Connection and Select Into (from SQL Server to MS Access DB) query to perform this task. The VBA Code is written in MS Access Database.


[SELECT *

INTO new_table_name [IN externaldatabase]

FROM old_tablename]
 
Try a pass through query.


Fair warning: limit your first heavily. Pre-07 versions of access have been known to explode:)
 
I was looking for a working syntax: Below is what I found and seems to be working well.


SELECT * FROM [ODBC;Driver=SQL Server Native Client 10.0;SERVER=Your_Server_Name;DATABASE=DB_Name;UID=User_Login;PWD=Your_Password]
 
Back
Top