sp_dsninfo (Transact-SQL)
Returns ODBC or OLE DB data source information from the Distributor associated with the current server. This stored procedure is executed at the Distributor on any database.
Returns ODBC or OLE DB data source information from the Distributor associated with the current server. This stored procedure is executed at the Distributor on any database.
Is the name of the ODBC DSN or OLE DB linked server. dsn is varchar(128), with no default.
Is the type of information to return. If info_type is not specified or if NULL is specified, all information types are returned. info_type is varchar(128), with a default of NULL, and can be one of these values.
|
Value |
Description |
|---|---|
|
DBMS_NAME |
Specifies the data source vendor name. |
|
DBMS_VERSION |
Specifies the data source version. |
|
DATABASE_NAME |
Specifies the database name. |
|
SQL_SUBSCRIBER |
Specifies the data source can be a Subscriber. |
Is the login for the data source. If the data source includes a login, specify NULL or omit the parameter. loginis varchar(128), with a default of NULL.
Is the password for the login. If the data source includes a login, specify NULL or omit the parameter. passwordis varchar(128), with a default of NULL.
Is the data source type. dso_type is int, and can be one of these values.
|
Value |
Description |
|---|---|
|
1 (default) |
ODBC data source |
|
3 |
OLE DB data source |