Share via


LinkedServerLogin.Drop Method

Removes the linked server logon.

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

Syntax

'Declaration
Public Sub Drop
'Usage
Dim instance As LinkedServerLogin

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 linked server logon. It does not remove the SQL Server logon.

Examples

Using Linked Servers in SMO

See Also

Reference

LinkedServerLogin Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Linked Servers (Database Engine)

sp_addlinkedsrvlogin (Transact-SQL)