SQL Server General DBA
When a second instance of SQL Server Reporting Services is installed the second instance will connect to the default instance. This is because the default behavior of a Reporting Services instance is to redirect its requests to the localhost. To reconfigure this behaviour you need to change the settings in the RSReportServer.config, RSWebApplication.config config files […]
I have an SSIS package which accesses a map drive. It works fine when I run SSIS from Visual Studio. However, when I run this from a SQL Server job, it gives an error. What is the reason for this? You should assign the necessary permission to the map drive for the user account which […]
As you might be aware, SQL Server 2005 includes a new way to enforce password policy & expirations for SQL Server login IDs. This was not the case in previous SQL Server versions. In the past, the only option you had was to use Windows Authentication if you wanted to enforce a password policy, but […]
Question: I have a team that would like to use the PROFILER to monitor the underlying TSQL statements to fine tune the database. How to enable this for the users without granting any Administrative privileges such as DBOon that database. Solution: Running SQL Server Profiler requires the same user permissions as the Transact-SQL stored procedures […]
Question: How can I drop all the instances attached to one Database? Answer: Use KILL statement with the spid (server process IDs) to drop one instance of the database. However, this is not that easy when you have many instances. In addition, finding out spids of a given database is also a difficult process. The […]
In SQL Server 2005 how to determine the role memberships and the permissions associated with login yy?
Solution: Open the Query Editor by Connecting to the appropriate instance of SQL Server 2005. Execute the following statements under the context of ‘master’ database: select suser_name(role_principal_id), suser_name(member_principal_id) from sys.server_role_members where member_principal_id = suser_id(‘xyz’)select permission_name, class_desc, major_id from sys.server_permissions where grantee_principal_id = suser_id(‘xyz’) To check the context of login: select suser_name() To check information on […]
You can replace the ‘db_owner’ with other fixed database roles such as db_accessadmin, db_backupoperator, db_datareader, db_datawriter, db_ddladmin, db_denydatareader, db_denydatawriter and db_securityadmin using the below instruction: select user_name(member_principal_id) from sys.database_role_members where role_principal_id = user_id(‘db_owner’)
How to resolve SQL Server Management Studio error: ‘Could not load file or assembly ‘SqlManagerUI …’?
Problem: Sometimes when a user tries to restore a database in SQL Server Management Studio on a 2005 database engine, they might get a error message:Cannot show requested dialog. ——————————ADDITIONAL INFORMATION: Could not load file or assembly ‘SqlManagerUI, Version=220.127.116.11, Culture=neutral, PublicKeyToken=89845dcd8080cc91′ or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) (mscorlib) —————————— […]
Question In SQL Server 2005, how do I backup the sys.asymmetric_keys and sys.symmetric_keys tables? Answer There is no way to directly backup these individual tables, and there is no need to do so. This is because SQL Server 2005 automatically backs up these tables when you back up a database. On the other hand, you […]
For optimum security, is it recommended to use a single domain account the SQL Server instances in a network?
Question Our team supports 150+ SQL Server 2000/2005 instances company-wide. In order to make it easier to manage the services accounts, we use the same domain account for all the SQL Services. This domain account has been granted both local machine and SA privileges.Recently, somebody raised a question about the wisdom of using the same domain account […]