Solved

Importing a SQL Server 2000 Table

Posted on 2002-03-21
7
541 Views
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

Nainey
0
Comment
Question by:nainey
7 Comments
 
LVL 44

Expert Comment

by:Arthur_Wood
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.

0
 
LVL 7

Expert Comment

by:Nosterdamus
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.

HTH,

Nosterdamus
0
 
LVL 5

Expert Comment

by:KMAN
ID: 6886437
Why the File DSN vs. System DSN?
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:nainey
ID: 6891976
Nosterdamus,
I have already defined a file DSN ans it is still not working!
0
 

Author Comment

by:nainey
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.
Thanks
Nainey
0
 

Accepted Solution

by:
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.
 
Cheers!
0
 

Author Comment

by:nainey
ID: 6893455
Indeed my connection string was wrong. Thanks
Nainey
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

831 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