This document is archived and information here might be outdated. Recommended version. |
Deletes a login.
[Visual Basic .NET]
Public Sub DeleteLogin ( _
ByVal loginName As String _
)
[C#]
public void DeleteLogin (
string loginName
);
[C++]
HRESULT DeleteLogin(
BSTR loginName
);
[C++] Parameters loginName [in]
loginName is a parameter of type BSTR
This method deletes a login from a database server. In order to delete a user or login, the user cannot own any data within the Database Server.
You must be a server administrator to perform this operation.