Copy Logins to another server with SIDs and passwords
I often need to replicate logins to another SQL Server where the SID and password (for SQL login types, not Windows based) need…
Read MoreI often need to replicate logins to another SQL Server where the SID and password (for SQL login types, not Windows based) need…
Read More
1 2 3 4 5 6 7 8 9 10 11 12 |
USE master; GO SELECT name, dbname FROM syslogins WHERE dbname = 'MyDatabase' ORDER BY dbname SELECT name AS LoginName, default_database_name FROM sys.server_principals WHERE default_database_name IS NOT NULL ORDER BY default_database_name |
Views – 1965
Read MoreI am doing some research on how to implement auditing of schema and security changes and will use this post to track notes…
Read MoreHere is a good article on syncing SQL logins across servers with the same SIDS to log-shipped databases will propagate the correct access…
Read MorePer the MSDN article below, accounts used to perform log-shipping tasks must be a member of the ‘sysadmin’ server role group: “The log-shipping…
Read MoreHere is some simple T-SQL to enable or disable a SQL login account:
1 2 3 4 5 6 7 |
-- Disable the login ALTER LOGIN [someLogin] DISABLE GO -- Enable the login ALTER LOGIN [someLogin] ENABLE GO |
Views – 1767
Read MoreSQL Server-level Roles • SysAdmin: Allows users to perform any activity on the server. • ServerAdmin: Permits users to manage configuration options on…
Read More