Share via


SPDatabaseServiceInstance.EnsureSQLAuthUser method

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function EnsureSQLAuthUser ( _
    username As String, _
    securepassword As SecureString, _
    asDatabaseAdmin As Boolean _
) As Boolean
'Usage
Dim instance As SPDatabaseServiceInstance
Dim username As String
Dim securepassword As SecureString
Dim asDatabaseAdmin As Boolean
Dim returnValue As Boolean

returnValue = instance.EnsureSQLAuthUser(username, _
    securepassword, asDatabaseAdmin)
public bool EnsureSQLAuthUser(
    string username,
    SecureString securepassword,
    bool asDatabaseAdmin
)

Parameters

Return value

Type: System.Boolean

See also

Reference

SPDatabaseServiceInstance class

SPDatabaseServiceInstance members

Microsoft.SharePoint.Administration namespace