IsLogin Method (SQL-DMO)

The IsLogin method returns True when the string specified is a valid name string for a Microsoft® SQL Server™ login record.

Applies To

SQLServer Object

Syntax

object.IsLogin( LoginName )

Part Description
object Expression that evaluates to an object in the Applies To list
LoginName String tested

Returns

True if the LoginName argument is a string of valid login record name characters in a valid sequence. False, otherwise.

Remarks

The IsLogin method determines legality for names when adding logins to a SQL Server installation.

Prototype (C/C++)

HRESULT IsLogin(SQLDMO_LPCSTR szLoginName,
LPBOOL pRetVal);

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.