How can I get that details of current error log?
I have not the permission to run sp_readerrorlog.Because security admin rights are not provided only db_creator is given.How can I get that details of current error log?Thanks
View ArticleSch-M and Sch-S deadlock related to partitioned tables
Hi,Very anoying scenario... We have large partitioned table and we use staging table loads, and partitions sliding in and out of this table (part of the process is also rebuilding indexes on the...
View ArticleSQL Browser and SQL VSS writer missing
I have an issue with a SQL 2008 R2 Standard default instance (running on Server 2008 R2 Std.) which appears to be missing parts of its installation.The SQL Server Browser and SQL VSS writer services...
View ArticleStrange JOIN performance issue
Hi,I've found a strange performance issue when executing simple JOIN both on SQL 2008 R2 and SQL 2012.Let's create the following tables:CREATE TABLE TestJoinParent ( ID int IDENTITY(1,1) NOT NULL...
View ArticleMemory / virtual memory problem on Win2K8 server
Greetings everyone ! This kind of trouble and question. I have Windows 2008 R2 Standard server installed on VM host on 1 vCPU (4 cores), 5120MB vRAM and 600GB vHDD virtual machine. Server acts as SQL...
View ArticleRING_BUFFER_SCHEDULER_MONITOR reporting over 100% ProcessUtilization
I am using RING_BUFFER_SCHEDULER_MONITOR to get cpu history for the server. For some reason on our new intel box (system info below) we are experiencing above 100% (in the xml below it shows 129)...
View ArticleIndexs still marked as not being used but already deleted...?
Hi allI am currently going through the indexes which are not currently used on the live system. What I have noticed is when I get my numbers (or lack thereof) from sys.dm_db_index_usage_stats, it...
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 ArticleSQL Server 2008 R2 is terminating because of fatal exception c0000005
SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check...
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 Article