Just how well does SQL Server use a three-field clustered PK?
We have a little utility table, "little" with about 100k rows, that has a PK with three fields, then half a dozen other fields. This morning at 4AM two ETL jobs managed to deadlock over it. We can't...
View ArticleCan't Reduce VLFs
Hi guys, I have a job that tries to make sure every DB has < 50VLFs. It shrinks the log then regrows it to its original size in 1 step. I have one DB that I can't get < 300 VLFs. I think its...
View ArticleHow to convert SQL cluster server to Virtual Machine
Hello All,Could you please help me in providing information of what all steps needs to be taken care while converting SQL Cluster to Virtual Machine.- We need to configure Cluster even in VM with...
View ArticleUsage of CTE in a nested select
Hi,Im very new to CTE. I have a nested select statement for CTE like the one below but i keep hitting this error:Msg 1033, Level 15, State 1, Line 13The ORDER BY clause is invalid in views, inline...
View ArticleClustered Index Ordering & Insert Speeds
Hi,We used to have a clustered index which consisted of 5 fields, this was ordered incorrectly which meant new inserts caused a lot of bad page splits.This CI was reordered to be correct and that...
View ArticleMaximum memory on SQL Server 2012 Standard
Dear everyone, I would like to check with all of you about maximum memory on SQL Server 2012 Standard. If refer from http://msdn.microsoft.com/en-us/library/cc645993.aspx that said SQL Server 2012...
View ArticleSQL: Message, servirity, state
Hi AllWhere can I get all the SQL message , servirity and state list, and their meanings?
View ArticleHow to pass parameter values to asmx web service through a stored procedure...
Hi,Can anybody please help with this?I need to pass paramter value to my web service which I have hosted locally through a stored procedure. But I am not able to find a way to use that URL to pass...
View Articlecontent
Hi all,what content contain the ldf in sql server?what content contain clustered index in sql server?
View ArticleHow to connect different SQL servers without using linked server connection...
Hi,We're trying to read data from another SQL Server through our SQL server but we're not allowed to do that using Linked Servers. Please suggest an alternative here as the DBA says Linked Servers are...
View ArticleIs it ok to set the restricted growth of system database?
Is it ok to set the restricted growth of system database?Thanks
View ArticleSQL 2012 tempdb initial size
I install SQL 2012 in cluster and cofigure tempdb: 1 file per core, initial size 1024Mb, but after SQL automatic change initial size to different value. Why SQL automatic change initial size for...
View ArticleCheck scheduler_id's for parrallel queries using Extended Events
Hi,we followed the rule to set the maxdop = numer of schedulers per NUMA node. I now want to check how often parallel queries can use different schedulers within the same NUMA node. Following scripts...
View Articleexcept shrinking how can I release those space from database.
My drive size is 550 GB in which data file exists. I have 500 GB database and I can see that internally 85 GB free space in data files still we receive alerts.except shrinking how can I release those...
View ArticleI want to know why datafiles and log files are increasing in index rebuild...
In index rebuild process my database(data files) are increasing to 120 GB and log file is increase to 110 GB.I want to know why datafiles and log files are increasing . Mainly data files because I...
View ArticleSQL Dump File Help Needed
Hi All,I need some help identifying the issue with this query I'm running, whenever I run a particular query using the below optimize for statement, it generate the error below and a dump file(OPTIMIZE...
View ArticleUnable to connect to remote SQL server in management studio
I have done all the steps in this...
View ArticleIssue in making rows to columns
Hello All,I am working on a query where I need to make 2 rows data as columns. I have 2 tables Table A and Table B from which I am getting the data.Here is my Query.SELECT DISTINCT A.Name,...
View ArticleSYS processes, sql_handle, stmt, stmt_start,stmt_end
Hi ALLAre there any method to have processes, sql_handle, stmt_start,stmt_end and the real tsql in the same table?
View Article