Listing 1
| Parameter | Description |
| server | Local name used for the linked server. |
| product_name | Product name of the OLE DB data source. For SQL Server instances, the product_name is ‘SQL Server’. |
| provider_name | This is the unique programmatic identifier for the OLE DB provider. When not specified, the provider name is the SQL Server data source. The explicit provider_name for SQL Server is SQLNCLI (for Microsoft SQL Native Client OLE DB Provider). MSDAORA is used for Oracle, OraOLEDB.Oracle for Oracle versions 8 and higher, Microsoft.Jet.OLEDB.4.0 for MS Access and MS Excel, DB2OLEDB for IBM DB2, and MSDASQL for an ODBC data source. |
| data_source | This is the data source as interpreted by the OLE DB provider. |
| location | The location interpreted by the OLE DB provider. |
| provider_string | The connection string specific to the OLE DB provider. |
| catalog | This varies from the database systems. |
Listing 2.
| Parameter | Description |
| Rmtsrvname | The linked server name. |
| Useself | When the value true is used, the local SQL or Windows login is used to connect to the remote server name. If false, the locallogin, rmtuser, and rmtpassword parameters of the sp_addlinkedsrvlogin stored procedure will apply to the new mapping. |
| locallogin | The name of login to be mapped. If this parameter is null, then the mapping applies to all the logins. |
| rmtuser | The name of the remote user. |
| rmtpassword | The password of the remote user. |
Listing 3.
Listing 4.
Listing 5.
Listing 6.
Not a member yet? Register now
Are you a member? Login now