Importing a SQL Server 2000 Table

Posted on 2002-03-21
Last Modified: 2012-06-21
I want to import an SQL table into Access 97 in code and I keep getting an error "Could not find installable ISAM". If I import through the menu, i.e. File, Get External Data, Import it works. The code to import the table is below:

    DoCmd.TransferDatabase acImport, "ODBC", "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Neve;Data Source=2000SERVER\SERVER2000", acTable, "studdet", "studdetnew", False

Question by:nainey
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 44

Expert Comment

ID: 6885214
why are you IMPORTING the table into your Access DB.  I would suggest that you LINK the SQL Server Table into your Access DB. That way, any new data ADDED or CHANGED in the SQL Server Table is automatically available to you in your Access Database, without you having to import the data again.

A LINKED table looks, to your application, EXACTLY like any other local table.

If you are not familiar with LINKED tables, then just ask for more information.


Expert Comment

ID: 6885434
Hi nainey,

Either case (import or link), you should first define an ODBC connection via "Control Panel-> ODBC 32 Bit". Make sure that you create a file DNS connection rather than a system DNS connection.



Expert Comment

ID: 6886437
Why the File DSN vs. System DSN?
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.


Author Comment

ID: 6891976
I have already defined a file DSN ans it is still not working!

Author Comment

ID: 6891978
Arthur Wood,
I am familiar with Linked tables and already use them, but this table has to be imported because I specifically do not want the changes made to be automatically updated. Anyway, how can I link the table through code - if I just chnage acImpoprt to acLInk I get the same error.

Accepted Solution

kellykln earned 100 total points
ID: 6893431
You probobly don't have the connection string right. In order to get the correct connection string go into design view of the linked table, right click look at properties, description and you'll see the correct connection string. Paste that into your code. Here is what it should look like:
ODBC;DSN=MyServer;Description=SomeDB;APP=Microsoft® Access;WSID=MYID;Trusted_Connection=Yes;TABLE=dbo.MyTable

Make sure that you have the proper permission on the server.

Author Comment

ID: 6893455
Indeed my connection string was wrong. Thanks

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question