Connecting Access and SQL Server 2000

How do I connect Microsoft Access to SQL Server 2000?

    Requires Free Membership to View

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

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.