How to setup a linked server to Access 2000 database? -


I am using SQL 2005 server express.
How can I set up a linked server in an MS Access 2000 database?

See books online.

  EXEC sp_addlinkedserver @server = 'Linked Server Name', @srvproduct = 'access', @provider =' Microsoft.Jet.OLEDB.4.0 ', @datasrc =' C: \ Path \ file.MDB ';  

You may also need to use sp_addlinkedsrvlogin to add a user / login to the linked server. In addition, if you are using Access 2007, you may have to use an alternate provider:

  @provider = 'Microsoft.ACE.OLEDB.12.0',  

And lastly, if you are on a 64-bit operating system, you may come into problems


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -