Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
dustydog
Starting Member
1 Post |
Posted - 2004-03-01 : 10:02:29
|
| I am looking for a way to extract a domain user list from a local computer (or server on a network) via SQL script and then add those users to a specific SQL server db using Windows Authentication. Has anyone written a SQL script that will do this? Can anyone lead me down the code path for doing this?Much appreciated,Dustydog |
|
|
derrickleggett
Pointy Haired Yak DBA
4184 Posts |
Posted - 2004-03-02 : 19:09:26
|
| I don't think any of us could think of a good reason for doing this. Why would you want to add everyone like this?MeanOldDBAderrickleggett@hotmail.comWhen life gives you a lemon, fire the DBA. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-03-02 : 19:18:57
|
| You can use the Active Directory APIs to get the user list. This obviously would not be done in T-SQL. But once you have that list, you could then run a SQL script to put the users in the database.Tara |
 |
|
|
|
|
|