add into 'BUILTIN\Administrators' through TSQL

is it possible to add users into the above group using tSQL, instead of windows?

Thanks
LVL 6
anushahannaAsked:
Who is Participating?
 
Karim-SaidCommented:
you can use the foolowing SP to enumerate user groups
xp_logininfo 'domain\groupname' , 'members'

but you can't use TSQL to add groups

you can use a script like in this URL if you are looking for a programmatical way
http://msdn.microsoft.com/en-us/library/ms676310(VS.85).aspx

Best Regards,
migo
0
 
anushahannaAuthor Commented:
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.