Solved

add into 'BUILTIN\Administrators' through TSQL

Posted on 2010-09-16
2
335 Views
Last Modified: 2012-05-10
is it possible to add users into the above group using tSQL, instead of windows?

Thanks
0
Comment
Question by:anushahanna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Karim-Said earned 500 total points
ID: 33694632
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
 
LVL 6

Author Comment

by:anushahanna
ID: 33702602
Thanks.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question