I keep losing this helpfile.. when I need it the most, it is located in the BOL labeled "sp_addlinkedserver (Transact-SQL)", if you scroll to the bottom of the article.
The frustrating thing about learning about linked servers is the coordination between the different types of connections! Viva la difference?
Remote OLE DB data source | OLE DB provider (@srvproduct) | product_name (whatever you want to name it "blah blah"…) | provider_name (@provider) | data_source (@datasrc) | location (anyone?) | provider_string (@providerstr?) | catalog (@catalog) |
SQL Server | Microsoft SQL Server Native Client OLE DB Provider | SQL Server 1 (default) |
|
|
|
|
|
SQL Server | Microsoft SQL Server Native Client OLE DB Provider |
| SQLNCLI | Network name of SQL Server (for default instance) |
|
| Database name (optional) |
SQL Server | Microsoft SQL Server Native Client OLE DB Provider |
| SQLNCLI | servername\instancename (for specific instance) |
|
| Database name (optional) |
Oracle | Microsoft OLE DB Provider for Oracle | Any2 | MSDAORA | SQL*Net alias for Oracle database |
|
|
|
Oracle, version 8 and later | Oracle Provider for OLE DB | Any | OraOLEDB. | Alias for the Oracle database |
|
|
|
Access/Jet | Microsoft OLE DB Provider for Jet | Any | Microsoft.Jet. | Full path of Jet database file |
|
|
|
ODBC data source | Microsoft OLE DB Provider for ODBC | Any | MSDASQL | System DSN of ODBC data source |
|
|
|
ODBC data source | Microsoft OLE DB Provider for ODBC | Any | MSDASQL |
|
| ODBC connection string |
|
File system | Microsoft OLE DB Provider for Indexing Service | Any | MSIDXS | Indexing Service catalog name |
|
|
|
Microsoft Excel Spreadsheet | Microsoft OLE DB Provider for Jet | Any | Microsoft.Jet. | Full path of Excel file |
| Excel 5.0 |
|
IBM DB2 Database | Microsoft OLE DB Provider for DB2 | Any | DB2OLEDB |
|
| See Microsoft OLE DB Provider for DB2 documentation. | Catalog name of DB2 database |