GrantNTLogin Method

SQLServer.IntegratedSecurity Object

Description

Gives a Windows NT group or user account access to SQL Server.

Visual Basic

IntegratedSecurity.GrantNTLogin (
[Account :=] strAccount,
[[LoginType :=] tLoginType] )

C++

HRESULT pIntegratedSecurity->GrantNTLogin (
SQLOLE_LPCSTR
strAccount,
SQLOLE_INTSECLOGIN_TYPE
tLoginType =
SQLOLEIntSecLogin_User );

Elements

Element Type Description

strAccount String Windows NT group or user account
tLoginType SQLOLE_INTSECLOGIN_TYPE Login type

Reference

xp_grantlogin