Why SQL Generate this execution Plan
Basically we have a stored procedure runs daily with less than a minute, but occasionally this will take 15 minutes to run. Ran a trace and it turned out one of its insertion command causes this...
View ArticleDatabase Mail Issue
Hi, Database mail is configured on sql sever 2005 (9.0.5000). Profile and accounts are created and configured. When I try to send test message, message never delivered. Don't know where it stuck up. In...
View ArticleSQL Server 2008 Architecture Deffinition
Hi All, I need small Information regarding how to tell the answer the below question in simple way. Tell me about SQL Server 2008 Architecture? Thanks,Prasad.
View ArticleRemove Dead Lock
Hi, I want to enable a setting or write a script to kill/clear a dead lock if it exists more than 5 sec. Is it possible?
View ArticleJoin order
After reading volumes on join performance, join smaller tables first, yada yada... I heard a while back that it is good practice to always have left outer joins after all inner joins because having the...
View ArticleThe text data type cannot be selected as DISTINCT because it is not comparable.
Hi, I am using the query as below,but i am getting error as: The text data type cannot be selected as DISTINCT because it is not comparable. select distinct Notetype,NOTE from srcBudget unionall select...
View ArticleInserting into replicated table
I have a peculiar problem here. I have a table MasterDB.Employee and its being replicated in ReplicationDB.Employee. I have a .Net screen which has boxes to key in information about an employee and...
View ArticleSQL Server Memory Leakage
Hi All, I have a Memory Leakage issue on our SQL Server 2008 Windows R2 , When The Re-Indexing of the Database occurs which is at 01.00 am on a daily basis, it eats up the memory and does not relaease...
View ArticleSQL Server 2008 Standard Edition or Enterprise Edition on a Dev server?
We have a development server which currently has SQL Server 2008 Standard Edition installed. One of the drawbacks for us is that we cannot install some third party software like the Oracle Driver by...
View ArticleDifference between Function and View
Hi, Can you please tell me differences between Function and View. Thanks and Regards Kranthi
View Articlestatistics
Hi All, I need some clarifications on update stats. 1. I have seen in cx's scenario's where they have a maintenace plan like checkdb --> re-organize index -> rebuild index - > update stats...
View ArticleAvg. Disk Queue Length
Hi, I just saw a presentation on monitoring SQL server and the person giving it had a spreadsheet showing all his stats recorded with PerfMon. One thing I noticed was that he had taken the Avg. Disk...
View ArticleWould changing the isolation level to Snapshot for only 1 sproc help?
Greetings. 2008R2 So I'm trying to get up the Snapshot Isolation Level learning curve for two different systems. I'm having some deadlocks in one system, and blocking in the other. Of course code mods...
View Articlehow to track down primary key violation problem
We have a specific file from our application that cause PK violation on our SQL 2008 server. I would like to track down what those fields are and I know which DB and table those field resides. The...
View ArticleCDC and sys.dm_db_task_space_usage.internal_object_alloc_page_count
Gurus - I have CDC setup (2008 R2) and the job is set to run continuous. The job calls the cdc scan procedure with default parameters maxtran = 500 maxscans = 10 continuous = 5 pollinginterval = 5...
View ArticleCan't access table named SysMessages in SQL Server 2012
I have a table in my database named SysMessages that I use for storing custom error messages. I have been using this for years in SQL Server 2005/2008 with no problem, but in 2012 whenever I refer to...
View ArticleSQL Server 2005 Error Log : LazyWriter: warning no free buffers found.
Problems and Steps that I have tried: 1. Client Computer unable to connect to DB Server. 2. Error log shows many rows of errors started with "LazyWriter: warning<c/> no free buffers found." 3....
View ArticleTempDB issue after applying Indexes
I added several indexes to a SQL Server 2012 database to help with performance a couple of days ago. Today our partition with TempDB on it ran out of space. TempDB went from less than 10 GB to 38 GB....
View ArticleCopy database troubles on SQL Server 2008 R2
I have a SQL Server database called IntRaad. It is just a small database (44Mb) for a personal/small business application. On my development system (DEV), I work with it using SQL Server 2008 R2...
View Article