Skip to main content Skip to Ask Learn chat experience

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Read in English

Note

Access to this page requires authorization. You can try signing in or changing directories.

Access to this page requires authorization. You can try changing directories.

In this article

Distributed Queries Stored Procedures (Transact-SQL)

SQL Server supports the following system stored procedures that are used to implement and manage Distributed Queries.

sp_addlinkedserver

sp_indexes

sp_addlinkedsrvlogin

sp_linkedservers

sp_catalogs

sp_primarykeys

sp_column_privileges_ex

sp_serveroption

sp_columns_ex

sp_table_privileges_ex

sp_droplinkedsrvlogin

sp_tables_ex

sp_dropserver (Transact-SQL)

sp_testlinkedserver (Transact-SQL)

sp_foreignkeys

See Also

Reference

System Stored Procedures (Transact-SQL)

Concepts

Distributed Queries


Additional resources


  • Last updated on 2012-10-04

In this article

en-us
Your Privacy Choices
  • AI Disclaimer
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Consumer Health Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2026