There are times when you want to know who the users are in a particular group. Depending on your level of privileges, there are various ways to get this information: 1. You can find out about it using the SQL Server Management Studio or Query Analyzer: EXEC xp_logininfo ‘DOMAIN\group_name’,’members’ To run this, you will need [...]
Posts Tagged ‘security’
How to Find Out the Members of a Group
Posted in SQL Server, Windows, tagged security, Windows group on 27 July 2009 | Leave a Comment »
Altering Table Schema and Schema Ownership – SQL Server 2005
Posted in SQL Server, tagged schema, security on 3 June 2009 | Leave a Comment »
Do you see something like this in your database? DOMAIN\login.myTable Username.myView Username.someStoredProc Sometimes these objects are created ”accidently” under user’s schema. So how do we change it back to dbo or to other schema? ALTER SCHEMA dbo TRANSFER DOMAIN\login.myTable This will alter the schema of myTable to dbo. Want to dig more information for schemas [...]
Change Default Schema In SQL Server 2005/2008
Posted in SQL Server, tagged schema, security on 15 May 2009 | Leave a Comment »
I recently found out that some schemas in my SQL2005 box are not of the default dbo (this is apart from some pre-determined schemas that we have). This seems to happen when I run sp_adduser to add a login as a user of a particular database. CREATE LOGIN [DOMAIN\mylogin] FROM WINDOWS GO USE MyTestDB GO [...]
Unlock Login in SQL 2005/2008
Posted in SQL Server, tagged login, security on 14 May 2009 | Leave a Comment »
Without changing password: ALTER LOGIN [login] WITH CHECK POLICY = OFF; ALTER LOGIN [login] WITH CHECK POLICY = ON; GO With password change: ALTER LOGIN [login] WITH password =’*****’ UNLOCK; GO http://msdn.microsoft.com/en-us/library/ms189828.aspx