Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

sp_catalogs (Transact-SQL)

Returns the list of catalogs in the specified linked server. This is equivalent to databases in SQL Server 2005.

Topic link icon Transact-SQL Syntax Conventions


sp_catalogs [ @server_name = ] 'linked_svr'
[ @server_name =] 'linked_svr'

Is the name of a linked server. linked_svr is sysname, with no default.

Column name Data type Description

Catalog_name

nvarchar(128)

Name of the catalog

Description

nvarchar(4000)

Description of the catalog

Requires SELECT permission on the schema.

The following example returns catalog information for the linked server named OLE DB ODBC Linked Server #3.

ms189764.note(en-US,SQL.90).gifNote:
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'
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.