开发者

How to setup a linked server to Access 2000 database?

开发者 https://www.devze.com 2022-12-19 15:14 出处:网络
I am using SQL 2005 Server Express. How can I setup a linked serv开发者_如何转开发er to an MS Access 2000 database?Take a look at sp_addlinkedserver in Books Online.

I am using SQL 2005 Server Express.

How can I setup a linked serv开发者_如何转开发er to an MS Access 2000 database?


Take a look at sp_addlinkedserver in 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 associate a user/login with the linked server. Also, if you are using Access 2007, you may need to use an alternate provider:

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

And finally, if you are on a 64-bit operating system, you may run into issues.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号