未來的 Microsoft SQL Server 發行版本將不再提供此功能。請避免在新的開發工作中使用此功能,並計劃修改目前使用此功能的應用程式。
The IsLogin method returns TRUE when the string specified is a valid name string for a Microsoft SQL Server login record.
語法
object
.IsLogin(
LoginName
)
Parts
- object
Expression that evaluates to an object in the Applies To list.
- LoginName
String tested.
Prototype (C/C++)
HRESULT IsLogin(SQLDMO_LPCSTR szLoginName,
LPBOOL pRetVal);
Returns
TRUE if the LoginName argument is a string of valid login record name characters in a valid sequence. FALSE, otherwise.
備註
The IsLogin method determines legality for names when adding logins to an instance of SQL Server.