?
Solved

add into 'BUILTIN\Administrators' through TSQL

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have a large data set and a SSIS package. How can I load this file in multi threading?
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

762 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