Distributed Queries
Using any programming language, you can use ADO and OLE DB to connect to any data source. SQL Server 2000 uses OLE DB to give you access to any available data source.
You can write ad hoc queries in SQL Server to access external data using a rowset function in the FROM clause, as if it were a result set from a local table. All you need to use this functionality is an OLE DB provider and the properties required to establish a connection to the data.
For common queries, it is more efficient to define a linked server, declaring the connection properties permanently, so any user connected to the local server will have access to the remote server without specifying any connection property manually.
Note
For this chapter, you ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access