[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

add into 'BUILTIN\Administrators' through TSQL

Posted on 2010-09-16
2
Medium Priority
?
338 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

649 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