Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Renames the database user.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Rename ( _
newname As String _
)
'Usage
Dim instance As User
Dim newname As String
instance.Rename(newname)
public void Rename(
string newname
)
public:
virtual void Rename(
String^ newname
) sealed
abstract Rename :
newname:string -> unit
override Rename :
newname:string -> unit
public final function Rename(
newname : String
)
Parameters
- newname
Type: System.String
A Boolean value that specifies the new name of the database user.
Implements
Examples
Managing Users, Roles, and Logins
See Also
Reference
Microsoft.SqlServer.Management.Smo Namespace