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]
GO
EXEC master.dbo.sp_dropserver @server=N'SQLNVT08NP2010', @droplogins='droplogins'
GO

Leave a Reply

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