SQL Server 2005 : tables fragmenting rapidly
Hello,Background about issue/problems: Application was developed in ASP, ASP.net FW 1.1 (front-end) and SQL Server 2005 as (back-end) and have been running on production server. From past couple of...
View ArticleColumnstore index switching to row mode with inner join
Hi all,Considering the following "example" query with a columnstore index:SELECT ClientId, SUM(OrderAmount) FROM Order GROUP BY ClientIdExecution plan shows a nice batch execution mode. When I do...
View ArticleQuestion about sys.dm_db_index_usage_stats.
Greetings. I'm running this query on a 2008R2 server:select * from sys.dm_db_index_usage_stats where database_id = db_id() and user_seeks = 0 and user_scans = 0 and user_lookups = 0And getting 11...
View ArticleInteresting issue with backup
Hello folks,I am having an interesting issue with backup (from a SQL2005+SP3 Instance) restore (to SQL2012+SP1).I performed DBCC CHECKDB before this in the SQL 2005 instance before this operation and...
View ArticleGetting most_recent_sql_handle from prior session?
Hi, We are migrating a COBOL-DATACOME application to .Net COBOL and SQL Server using MicroFocus. I have been monitoring the queries via using DMVs and and traces. I notice an odd thing once in a...
View ArticleSQL Dependency in SQL Server 2012
Hi,I have programs that use SQL dependency mechanism to update UI. Works great on SQL Server 2008. When I run the same code on SQL Server 2012 which, I think, was configured similarly (at least when...
View ArticleAttach Database in SQL Server 2008 is not working...........!!!!!
TITLE: Microsoft SQL Server Management Studio ------------------------------ Cannot show requested dialog. ------------------------------ ADDITIONAL INFORMATION: Parameter name: nColIndex Actual value...
View ArticleRebuild index task failed with error: Could not proceed with index DDL...
Hi Friends,I have one rebuild index job in my environment which is created using maintenance plan & having an option "keep index online ".job is continuously failed at this schedule time, when i...
View ArticleSQl Server 2005 SP4 - 4 node
Guys, If you wanted to apply SQL 2005 Service Pack 4 to a 4 node cluster would you :a. Pause all 3 nodes and apply on 1 active node firstb. Install as normal and pray it installs ok on passive and...
View ArticleSuggested Criteria for Database Table Compression
Hi,We are about to move some large databases (150Gb to 270Gb) from SQL2005 to SQL2012. One feature that is now available is Database Compression. I do not really see any advantage to compressing a...
View ArticleIndex usage
I’ve been doing some analysis of our indexes with the thought of dropping unused indexes - and conserving space in our 1 TB database. I’m running the query below and have identified some indexes that...
View ArticleSQL performance worse since moving to sql 2008 R2 from SQL 2000 sp4a
We had a SQL 2000 server on a HP GL370 G5 running Windows 2000 Advanced (awe enabled 8gb ram)We now have a HP DL580 running hyper-v core 4 Processors 16 cores per processorThe Guest that sql sits on is...
View ArticleAudit DML Statemements on all tables and all databases
is there a way to do that with out SQL Profiler and triggers ?is anyone having any script to do this ?Please help me on this Thanks
View ArticleSQL Server pagefile.sys best practices.
Hi,Our SQl Server has 128 Gig of RAM.I am looking for best practices how to configure pagefiles on the SQL server and how to measure proper use of pagefile by using performance monitors.Is there any...
View ArticleConstraint to ensure at least one record is flagged
Hi,Is there a way to write a unique constraint/index on a table such that you can restrict a column to have a flag in at least one record in a table.An example table would be:ID Category...
View ArticleSharePoint database server memory issue
We have a SharePoint database server. The total memory is 24G. SQL server is currently using 98%. It started last Wednesday. It only used 4G memory before last Wednesday. We also started performance...
View ArticleExtended event timestamp bug still not fixed
I have SQL Server 2008R2 10.50 with SP1.When running a black box query I am still getting incorrect event timestamps. Any idea how to get the correct timestamp in this query?Thanks.SELECT...
View Articlerenaming a system object
hi all,i have a user table that has been promoted to a system table a while back. In the property, I see that the table System Object = True.I tried looking for a way to revert this table back to a...
View ArticleBest RAID for SQL Server 2008 R2 SE on SSD's
What is the best raid option for SQL Server 2008 r2 se on SSD's?I meant for ldf, mdf, tempdb. I am thinking of Raid 10 for the drives on which ldf and mdf resides and Raid 5 for the drive on which...
View Article