Aug 10, 2007 #1 gauravdubey80 Programmer Joined Jul 20, 2007 Messages 5 Location US Hi I want to write a query to extract all the unique names having access to the SQL DB from the master Db. ANy ideas? Ready Queries?
Hi I want to write a query to extract all the unique names having access to the SQL DB from the master Db. ANy ideas? Ready Queries?
Aug 10, 2007 #2 mrdenny Programmer Joined May 27, 2002 Messages 11,595 Select from the sysusers table in SQL 2000 or the sys.database_principals in SQL 2005 from within the database in question. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
Select from the sysusers table in SQL 2000 or the sys.database_principals in SQL 2005 from within the database in question. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com