Applies To: SQL Server 2014, SQL Server 2016 Preview
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Returns the list of catalogs in the specified linked server. This is equivalent to databases in SQL Server.
Applies to: SQL Server (SQL Server 2008 through current version).
The following example returns catalog information for the linked server named OLE DB ODBC Linked Server #3.
For sp_catalogs to provide useful information, the OLE DB ODBC Linked Server #3 must already exist.
USE master; GO EXEC sp_catalogs 'OLE DB ODBC Linked Server #3';