LinkedServer.Drop Method

Removes the reference to the linked server from the instance of SQL Server.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Drop
'Usage
Dim instance As LinkedServer

instance.Drop()
public void Drop()
public:
virtual void Drop() sealed
abstract Drop : unit -> unit  
override Drop : unit -> unit
public final function Drop()

Implements

IDroppable.Drop()

Remarks

This method removes the registration item that represents a linked server. It does not remove an instance of SQL Server.

Examples

Using Linked Servers in SMO

See Also

Reference

LinkedServer Class

Drop Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Linked Servers (Database Engine)

sp_addlinkedserver (Transact-SQL)