deadlock
Pls help me to resolve the deadlock. xdl content given bellow<deadlock-list><deadlock victim="process47d8988"><process-list><process id="process47d8988" taskpriority="0"...
View ArticleNeed to configure Filestream on a SQL running on server Core. PowerShell /...
Hello,I have a Windows 2012 Core with SQL 2012 installed on it and I need to enable Filestream using Powershell. Server name is SERVER1 I found this simple script to enable it $strComputer ="SERVER1"...
View ArticleTrace flag 8295
Hi,Does anyone have where trace flag 8295 is used for. I found it active on a customer server, SQL Server 2008 R2 SP2 Enterprise Edition, but I can't figure out the purpose of it. When I search the...
View ArticleHOW to change the collation settings on model database sqlserver 2005 server?
How to change the collation settings on model database sqlserver 2005 server?we are getting error 468 while we try to see the property of the database.
View ArticleSQL Server Database restoration problem
I Have a Backup. I took the backup from a different machine, but when I am going to restore it it giving me an error. The error looks like as followsPlease help me. How can i restore the database....
View Articlenot able to add buildin admin as login ..sql server 2008 express edition
i have added my AD group in the local administration of the server ... but facing issue while adding a new login .. (SA is disabled on the instance)im getting below error Microsoft Windows [Version...
View ArticleCardinality estimates on a parallel join are wrong
Hello everybody,I'm having a problem with pretty simple query where the cardinality estimates seems to be off and usual methods that I knew for this kind of problem don't help.The query: SELECT...
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 ArticleUnable to disable Server Audit on SQL Server 2008 R2 RTM
Hi thr,I have enabled Server Audit on My Production Server, now i would like to make few changes to this, for that i want to disable Server audit, but when ever i try to disable it through alter server...
View ArticleCopy database role
Hi All,I would like to copy a database role together with it's granted permission. How can I do it ?
View ArticleSQL Server Log file growing too fast
Hi All,As part of SQLadministration I truncate the log files frequently. I usually do this through the object explorer by detaching the database, physically deleting the log file and re-attaching the...
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 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 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 ArticleSQL 2012 SP1 - SSIS Server Maintenance Job poor performance.
I'm using SSIS 2012 on SQL 2012 SP1 and the performance of the SSIS Server Maintenance Job is abysmal. It's been running for 10 days and has still not completed. Worse still it is blocking the other...
View ArticleCannot 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 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 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 Article