How do I query a MS Access database directly from SQL Management Studio, without using a linked server?
Ie. something like
SELECT * FROM [“C:\Data\Accessdb.mdb”].[SomeTableInAccessDB]
Obviously this won’t work but is there a away to specify the access database details within a sql query?
You can use OPENROWSET or OPENQUERY. For example (per Microsoft’s Northwind):
Adding a linked server just allows ease of configuration, so different processes can use the connection without having to specify connection details. I don’t believe a Linked Server actually adds any functionality that can’t be obtained through one of the two OPEN options.