database level metric
Is it possible to produce any sort of database level performance metric in SQL Server. Let's say how many queries are being processed by that database? what's the response time. average response time...
View ArticleCannot open backup device 'c:\test.Production\ECA296Training_1.bak'.
I am getting this error and don't know what to do..Msg 3201, Level 16, State 1, Line 1 Cannot open backup device 'c:\test.Production\ECA296Training_1.bak'. Operating system error 3(The system cannot...
View Articlenotify dba about a failed windows event in windows log
Is there a way to setup sql alert that notifies DBA for a certain event ID errors loged in windows application log?ThanksSQLFriend
View Articlerebuild index failed
hi,The rebuild index fails with the following error message.i searched on internet for this error but dint find any solutionError:Executing the query "ALTER INDEX [Transactions_Key_myDay] ON...
View Articlesql error 602 when attach Database in sql 2000
hi all,i have database in sql 2000 but when attach DataBase in sql get error error 602 : could not find row in sysindexes for database id 7 , object id 1 index id 1 , run DBCCcheck tabel on sysindexes...
View ArticlePoweshell script error: the term 'import-module' is not recognized as the...
I am getting below error when executing a powershell script from sql agent job on a SQL Server 2008 R2 failover cluster. This code executed OK on other sql servers. Code runs fine when executed through...
View ArticleResource Database is Located on Bin Folder
Hi All,Why Resource Database is Located Bin Folder in 2008 version but 2005 it's located at different ? please explain the discrepancy of resource database 2005, 2008 versions and why resorce database...
View ArticleCHECKTABLE found 0 allocation errors and 4 consistency errors in table...
Hello,I've detected this database consistency problem in integrity check. This error was appeared since may of 2012 therefore the backup was overwritten. Can you help me about the solution about this...
View Articlesys.dm_db_index_physical_stats: big differences in execution time
We run sys.dm_db_index_physical_stats(DB_ID(<DB-name>), NULL, NULL, NULL, NULL) on a daily basis to collect DB object size statistics.The first time we scheduled this SQL Job, it ran for 20min....
View ArticleInsert Exec Performance issue
Hi,I have a procedure which has a code something like set @SQL = 'exec [LINKED SERVER].[db_name].dbo.[SP_NAME] @param_1 @param_2'insert into #temp(...)exec (@SQL)When I execute SP without insert...
View ArticleEstimating the time taken for rebuilding the indexes in SQL 2012
Hello everyone,Is there any DMV that i can use to estimate the time taken for rebuilding the indexes in SQL 2012 ?Regards,ddanda
View ArticleSP slow from app fast from SSMS. Also plan guides for entire SP?
OK, I see this is a perennial, but now it's hitting me!It's a winapp, in C#, using connection pooling.sys.dm_exec_sessions does not show any different settings, and what settings would matter...
View ArticleA month's worth of powershell tutorial including SQL Server related tasks......
I hope it is ok to post this here. If not, my apologies to this forum.A very special thanks to Wayne Sheffield for providing this excellent...
View ArticleQUOTED_IDENTIFIER is a parse time setting but what if there are two in the...
BOL for this setting (2005-2012) hasn't changed. It says it is a parse time setting which happens before any lines are executed.SET QUOTED_IDENTIFIER OFF; DBCC useroptions EXEC(" IF EXISTS (SELECT *...
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 ArticleCollation and Indexed search
Hi All,I am on SQL Server 2008 R2.In my database server, collation_name on all the databases is Latin1_General_CI_AS. So it's case insensitive. I assume, that will mean the object names are case...
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 ArticleCreating one or more indexes on composite primary key?
So I have this new table, and I want to create a compound primary key on. How do I handle the index with this situation ?The table will typically be queried with a join to it with a condition that...
View ArticleSQL 2012 cluster and MSDTC
Hi,we are migrating/upgarding our Sharepoint environment from SP 2007 to SP2010 and backend SQL db server from SQL 2005 to SQL 2012.For the upgrade/migration,we have configured three node...
View Articlebackup as multiple files
how does multiple file backups help backup performance if all the backups are going to same Disk? I can see how it can help when doing it to multiple drives(eliminates disk contention). Parallelization...
View Article