SQL Query to Delete a Linked Server

The following stored procedure will remove the linked server instance SQLSERVERINSTANCE along with all associated remote logins:

USE [master]
EXEC master.dbo.sp_dropserver @server=N'SQLNVT08NP2010', @droplogins='droplogins'

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.