Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Importing a SQL Server 2000 Table

Posted on 2002-03-21
Medium Priority
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?
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


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 400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

604 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