Cannot connect to SQL Server
Error trying to connect SQL Servertimeout expired. the timeout period elapsed prior to completion of the operation or the server is not respondingError while trying to Execute a procedure from Stored...
View ArticleDeadlocks occur on Node A, but not on Node C
Here's an interesting one, and hopefully I'm just missing something obvious...Background:3 node cluster.(A-A-P)Windows Server 2008 R2 SQL Server 2008 R2 Enterprise (SP2)Hardware is exactly the same on...
View ArticleSQL Health Check Script.
Hi,I need a SQL health check script, or powershell script, in where we just provide a servername as input in stored proedure or powershell and it shoots a mail to me with complete health check...
View ArticleIs doomed transaction inevitable if deadlock occurs in a trigger (SQL Server...
Hi all,Below are two scenarios, however, what I am trying to accomplish is to catch deadlock errors and re-try the DML that was chosen as the deadlock victim. Does anyone know of way to accomplish...
View ArticleCMEMTHREAD seems to be a problem
We have server with 8 * 6 core Six-Core AMD Opteron(tm) Processor 8439 SE with 256GB of memory. There are currently only 4 sessions active on the server (the same for the last 3 hours). When I look at...
View ArticleCL Index columns in NONCL index
HiRecently I come across an index structure where, cl index column are used in non clustered index. Is there any benefit, is this a good index design practice. Please see the image bellowVVTPlease mark...
View ArticleFixed Server Role Auditing in SQL SERVER 2005
Hi Expterts, I have a requirement to keep track of fixed role grants and revoke to users on one of the instance in sql server 2005. I already deployed a ddl trigger to do this on 2008 instance but the...
View ArticleIs it safe to kill a task with wai type Backupthread?
Hi everyone,I am performing backups of all my user databases via maintenance plan and SQL Agent job, but I can see in the Activity Monitor that one of the database backups has 4 tasks in it - 2 are in...
View ArticleWhat's the value of avg_page_space_used_in_percent when checking heap...
Hi All,I see that the avg_page_space_used (returned from sys.dm_db_index_physical_stats) value for one of my heap tables is high (99.4924), but I don't quite understand the meaning of this value for a...
View Articleignores covering index
I have a common search query on a simple table that has only a single covering (nonclustered, not unique) index.This will use the index:SELECT @bOK = 1 FROM verify_e1_account WHERE (e1_business_unit =...
View Article'Attach' and 'Attach_rebuild_log' clause confusion in create database
I think I am having some confusion over 'Attach' and 'Attach_Rebuild_log' clauses : BOL says" In contrast, for a read-only database, the log cannot be rebuilt because the primary file cannot be...
View ArticleMaintenance plans to keep a development server cleaned up
For a development server, what kind of maintenance plans would be a good idea to have in place?I've started with one to cleanup the indexes and rebuild the statistics.However, I realized that my log...
View ArticleBackup errors in SQL log
We recently found there are quite a few error logs in sql log: Message BackupVirtualDeviceFile::PrepareToFreeze: failure on backup device '{4FEEA406-DD73-47D8-BC10-0ADAD6A44D6D}1'. Operating system...
View ArticleSQL Server Management Studio requirements
Dear,what is the requirement to install SQL Server Managemnt Studio?? will need previously install other components ?Thank youbest regards
View ArticleTemp db size is increasing not releasing space
Hi All MS sql server 2008R2(RTM) STD 64 bit, Temp db size is continuously increasing not releasing used up space , please suggest us what is the problem with my temp db ? i executed below query ,...
View ArticleSQL server 2012 slow performance
Hello.I have an SQL server 2012 running on a 32-core IBM machine with a database having 100M rows in a few tables with a couple of columns in each table. The queries performed well with 100%...
View ArticleHow is it my table has two heaps?
Hi Everybody,We have a heap table 142 records in it. There are no non-clustered indexes on this heap. Oddly, I'm getting two rows returned from sys.dm_db_index_physical_stats, and each row reports...
View ArticleODBC ERROR: State = 40001 Error = Transaction ( Process ID 235) was...
I am getting below Error, when i am trying insert data from third party applications to SQL Tables by ODBC ConnectionODBC ERROR: State = 40001 Error = Transaction ( Process ID 235) was deadlocked on...
View ArticleMaintenance plan failing on index rebuilding.
I've created a maintenance plan with the wizard to check integrity then rebuild all the indexes in the database. When it runs it fails. It goes through data integrity okay, but starts to build 4...
View Article