SQLUSA

Microsoft SQL Server 2000

Best Practices

 

How to join to an Access table?

 

You can join to an Access personal database table in a SELECT by using the OPENROWSET command. Here is an example to access the Orders table:

 

SELECT O.* FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'D:\MSOffice\Access\Samples\northwind.mdb';'LogIn';'PassWord', Orders) O

 

Best in the World in SQL Server Training
 
SQLUSA.com Home Page