Links
TADOSqlManagerQuery Component References
TADOSqlManagerQuery::GrantWindowLogins Method
__fastcall bool GrantWindowLogins(TLoginInfo* AccountInfos, int Count);

Allow or Deny a Microsoft® Windows NT® user or group account to connect to Microsoft SQL Server™ using Windows Authentication. 

AccountInfos: Pointer to Array of TLoginInfo 

Count: Number of array elements 

This function uses LoginName, Option, Role members of TLoginInfo structure 

LoginName: Windows User or group 

Option: if true, deny access. 

Role: If not empty, add login to Server role 

 

Copyright (c) 2006. All rights reserved.
What do you think about this topic? Send feedback!