What factor is causing this simple query to take so long?
I have a pretty straightforward SELECT query that joins several tables on integer primary keys and ends in a very simple WHERE clause of "where table1.IsActive = 1". I am injecting artificial data in...
View ArticleIs it safe to DBCC SHRINKFILE the transaction log while log shipping?
I administrate a database where IT has recently enabled transaction log shipping. Over the weekend, some index reorgs caused the transaction log to grow substantially--approximately 10x its usual...
View Articledeadlock
Pls help me to resolve the deadlock. xdl content given bellow<deadlock-list><deadlock victim="process47d8988"><process-list><process id="process47d8988" taskpriority="0"...
View ArticleConfigure Linked Server
Hi,How do you configure a linked server in SQL server 2005 and are there any performance issues with having SQL server set as a linked server?CheersPaul
View ArticleLeast accessing instances show as high memory utilization in my resource monitor
Hi All, Currently 5 SQLServer instances are running on one of my clustered node and least accessing instances show as high memory utilization in my resource monitor. Can someone advice the reason...
View ArticleHow roll back sp3 to sp1 on sql server 2008 servers
hi All, Lat week we have upgraded sql server 2008 with sp3.but now user asking us to roll back to sp1. Please let me know the step by step process for rollback to sp1. Regards,Maheshwar Reddy
View ArticleDatabase not attached at startup?
I had a very strange situation this morning. The computer that the SQL Server is on was shut down over the weekend, and everything shut down properly. It is running on Windows 2008 R2, and SQL Server...
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 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 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