Some useful scripts for DBAs
Every day in our life as DBA, we may encounter these queries in our environments. Hope this basic queries for SQL server 2005/2008 would stay as repository..1. Whenever SQL server restarts, it kicks...
View ArticleUsing SQL Server 2008 PBM to Monitor Free Space
In this article I’m walking you through how to setup data file free space monitoring using SQL Server 2008 Policy-Based Management feature. You may think “Hey dude this is not a monitoring tool…!” but...
View ArticleOn MS SQL how to restore a table or an object from backup file
On MS SQL how to restore a table or an object from backup file, the answer for this question is big NO from Microsoft, there is no direct option or feature to restore a table from MS SQL native backup,...
View ArticleHow to Set the default database and log directories on MS SQL Instance using...
--Run the following script on Query AnalyzerUSE master--For Data filesEXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'DefaultData',...
View ArticleGetting set up for multi-server management with SQL Server 2008 R2
One of SQL Server 2008 R2's most anticipated features is centered around its new multi-server management capabilities. As of the current Community Technical Preview (CTP), this feature is referenced as...
View ArticleHow to Evaluate Policies on Multiple Instances
IntroductionIn my previous article I’ve written about using SQL Server 2008 Policy -Based Management (PBM) and how to use it to monitor Free Space of data file(s) . When you evaluate the policy, it...
View ArticleMicrosoft SQL Server 2008 R2 top 10 features
Hey folks be prepare to read more about new enhancements in SQL Server 2008 R2 edition, a lot of attention has been given to the new database engine and BI features to landing on the ground with SQL...
View ArticleHow to create Policies using PowerShell scripts
IntroductionAs you know that SQL Server 2008 supports Windows PowerShell and is a powerful scripting shell that helps administrators to automate and built robust server administration scripts. In my...
View ArticleMS SQL Server 2008 Administration Exam - Free from BrainBench
BrainBench announced the release of their new MS SQL Server 2008 Administration test. This certification test is available for free on their site for a limited time as they gather data to monitor its...
View ArticleToken-based server access validation failed with an infrastructure error - MS...
IssueRecently I faced login failure issue while logging into a newly built MS SQL Server 2008 instance on Windows Server 2008 R2 server. I’ve ensured that I’m part of the local administrators group in...
View ArticleTDE and Tempdb
If you use TDE in any of your SQL instances, then the Tempdb also automatically gets encrypted on that instance. This could have a performance effect for the other unencrypted databases. Is this true...
View ArticleSQL Server 2005 - DBMail
Steps to Activate DBMail in SQL Server 2005/20081. Enable DBMail XPsUSE [master]GOEXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDEGOEXEC sys.sp_configure N'Ad Hoc...
View ArticleMicrosoft SQL Server 2008 R2 Best Practices Analyzer how to audit or analyze...
What is Best Practices Analyzer (BPA)?Microsoft Best Practices Analyzer is a diagnostic tool which uses to collect information about a physical Server and SQL Server instances. The tool will verify the...
View ArticleA network-related or instance-specific error occurred while establishing a...
Last week I was installing SQL Server 2008 R2 on a 64 bit Windows 2008 box, after the installation I suppose to do a post installation check that includes connectivity test both local and remotely. I...
View ArticleSQL Server Process completion in percentage in SQL Server 2005 and above...
Checking percentage completion of backup or restore tasks in SQL 2000 and earlier versions are required to use monitoring option BACKUP DATABASE ... WITH STATS [= percentage]. But in SQL 2005 and later...
View ArticleError when the database snapshot refreshing [Error: 913, Severity: 16, State: 1]
Today on one of our SQL Instance I observed that the below event was occurring last couple of days and I’ve been asked to look into it. I found that there is pattern in the event occurrence, it...
View ArticleBackup and Restore completion progress check on SQL 2005 and above
It is easy to check the percentage of completion of backup or restore operations on SQL 2005 or above versions where as in the older versions we’ve to use STATS[=Percentage] to check. In the newer...
View ArticleMsg 7391, Level 16, State 2, Line 8
Today I worked with a developer who was trying to query some data from a remote instance and inserting into a local instance, he told me that he created the linked server locally for the abc-sqlops01...
View ArticleMsg 15110, Level 16, State 1, Line 1 The proposed new database owner is...
Today I got an user request to change database owner for couple of databases on a lab environment. The user tried to change the owner by himself but he got "Msg 15110, Level 16, State...
View ArticleTransactional Log Full on Mirrored with Log shipped database
Today I worked on a Transactional log full issue on one of the critical production database server, the database involved in this issue is configured both Mirroring and Log shipping. From the mirrored...
View ArticleIn SQL Management Studio resgiter multiple servers using Powershell
Recently our team builted around 60+ DR servers in our new datacenter and I thought to register them in SQL management studio, of course it will take some time to register them all together and thought...
View ArticleArticle 2
ARE YOU USING THE RIGHT SQL SERVER PERFORMANCE METRICS?This article talks about the five important SQL metrics when you need to help in solving performance problems.Source: http://thomaslarock.com
View ArticleCannot find server certificate with thumbprint Errors
When I'm trying to setup log shipping for a database, I got the below certificate error and I understood that the database got TDE enabled and encrypted with Master key (private key). After struggled...
View ArticleMsg 5184, Level 16, State 2, Line 1
Today I was working on one of the SQL instance on a four node cluster. There are 4 data drives which were mounted already and yesterday I imported 2 new drives (Data5 and 6) in the cluster, they are...
View ArticleMost useful MDW queries I've written but didn't get chance to share long time...
Hmm... after a long gap writing this post on my blog... not sounds right... but I was little engaged with both personal and official work which blocked me to spend more time on my writing... In this...
View Article