Q

Connecting Access and SQL Server 2000

How do I connect Microsoft Access to SQL Server 2000?

You just have to link the server where the database resides, and with correct permissions, you'll have access to

the entire database. Run the Query Analyzer and type the following code:

 EXEC sp_addlinkedserver @server = 'YourServerName' @provider = 'Microsoft Jet OLEDB.4.0' @srvproduct = 'OLE DB Provider for Jet' @dtasrc = 'C:DatabasePathDatabase.mdb'
This approach is for continuous work with the database. If you just want to access data from time to time, let's say each week or maybe every three days, then I recommend you to use OPENROWSET function.

 

For More Information

This was first published in February 2002

Dig deeper on Microsoft SQL Server Installation

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchBusinessAnalytics

SearchDataCenter

SearchDataManagement

SearchAWS

SearchOracle

SearchContentManagement

SearchWindowsServer

Close