Is it possible to use SQL Server / SQL Server Management Studio to do queries across linked tables the way that you would do them in MS-Access?
The MS-Access front-end is frustrating and time consuming to say the least, which has led me to search for alternatives. I started using SQuirreL SQL, and was quite pleased with it, but it doesn't have the linked table functionality so you're somewhat limited on the queries that can be run.
Also, can you provide me with suggestion for a tutorial or book on how to set something like that up?
Best Answer
SQL Server Management Studio allows you to create multiple versions of queries where you can see the SQL text and results simultaneously.
You can use dotted-notation to refer to tables in separate databases on the same server like:
If you need to query data from multiple servers, you can create linked servers in SQL Server that provide all the capabilities of an Access front-end. This allows you to use 4-part dotted-notation like:
For example, this code creates 2 Databases on the local SQL Server, with 2 tables that contain a single record each. The
SELECT
at the end joins data from the 2 tables into a single output:The output is: