Browse by Tags

How to find all the owners of entities contained in a specified schema?
Published 4 October 7 3:0 AM | SSQA.net
How to find all the owners of entities contained in a specified schema? USE <database_name>; GO SELECT 'OBJECT' AS entity_type ,USER_NAME(OBJECTPROPERTY(object_id, 'OwnerId')) AS owner_name ,name FROM sys.objects WHERE SCHEMA_NAME...
SP_HELP_REVLOGIN for SQL Server 2005
Published 4 September 7 8:54 AM | SSQA.net
SP_HELP_REVLOGIN stored procedure helps you to generate a script that can be used to recreate the logins that exist on a server at a specific point in time script the logins along with password. I'm not sure how many DBA are aware of this Stored Procedure...
Property IsLocked is not available for Login '[x]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)
Published 22 August 7 8:56 AM | SSQA.net
One of my colleague has been getting following error when trying to open few logins properties to change their default databases using SSMS. TITLE: Microsoft SQL Server Management Studio ------------------------------ Cannot show requested dialog. --...
Disable SA account on a live SQL Server2005 instance, any drawbacks?
Published 13 August 7 4:3 AM | SSQA.net
Last week I have been delegated to finalize the security standards within a set of SQL 2005 instances that are used by a customer, though it is usual chores for me to apply industry best practices. On these SQL 2005 instances in particular I was more...
Alert particular set of users about PASSWORDY EXPIRY policy notification
Published 23 July 7 3:33 AM | SSQA.net
As you may be aware using SQL 2005 version you can set PASSWORD EXPIRY policy that can apply the same complexity and expiration policies used in Windows Server 2003 operating system to passwords used inside SQL Server. This functionality depends on the...
Script to find out all the groups contain in the login token for every server principal
Published 17 July 7 10:44 AM | SSQA.net
The following query will get you the information to find out the groups that contain user login token on that server principal: SELECT name , usage , type FROM sys.login_token ORDER BY usage , type , name go To find any Windows principal in the token...
Error message when you install SQL Server 2005: "Cannot alter the login 'sa', because it does not exist or you do not have permission"
Published 12 June 7 12:36 PM | SSQA.net
Source: Knowledge Base Product: Microsoft SQL Server 2005 Standard Edition Notification Contents: New and All Modifications Error message when you install SQL Server 2005: "Cannot alter the login 'sa', because it does not exist or you do...