Viewing 15 posts - 106 through 120 (of 388 total)
Enable it.
From Kimberly Tripp
Performance Test with Zero Initialization
Hardware: Dell Precision 670 Dual Proc (x64) with Dual Core, 4 GB Memory, RAID 1+0 array w/4-142 GB, 15000rpm disks
...
April 19, 2016 at 7:52 am
Try this
CREATE EVENT SESSION [Deadlock Graphs] ON SERVER
ADD EVENT sqlserver.xml_deadlock_report(
ACTION(sqlserver.database_id,sqlserver.database_name))
ADD TARGET package0.ring_buffer(SET max_events_limit=(50),max_memory=(51200))
WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=ON,STARTUP_STATE=OFF)
GO
That is my deadlock session.
Then you can double...
April 19, 2016 at 7:13 am
Are you checking deadlocks with extended events?
April 19, 2016 at 7:06 am
tripleAxe (4/15/2016) The statistics on the index will have been updated by the index rebuild job but with the SAMPLE option.
Rebuilding an index, for example by using the ALTER INDEX...
April 19, 2016 at 7:04 am
check missing indexes.
You could be caching whole tables and doing table scans in memory, which could be why cpu is high.
Before you maybe couldn't cache the whole table so a...
April 19, 2016 at 6:56 am
create table Temp(id int,SAPDATA varchar(6))
insert into temp
select 1 ID, 'ABC' SAPDATA
UNION ALL
select 2 , '100'
UNION ALL SELECT 3 , 'DEF' ...
April 18, 2016 at 5:35 am
Alan.B (4/15/2016)
Amen. And just when I thought scalar UDFs couldn't be any more evil I went and read this: Another Hidden Parallelism Killer: Scalar UDFs In Check Constraints[/url]
Just en closing.
These...
April 17, 2016 at 12:48 pm
Hugo Kornelis (4/15/2016)
TheSQLGuru (4/15/2016)
April 15, 2016 at 10:27 am
Is the collation the same between the 2 servers and between the userDB and tempdb?
April 15, 2016 at 9:24 am
do you want included columns as well?
Also, not sure what the output is but .....
Doing all these calculations on unused or duplicate indexes is a waste.
So first find duplicate indexes,...
April 14, 2016 at 2:53 am
Wild stab as there is no DDL but maybe this.
There could be duplication caused by the joins though but I assume this would be more performant.
SELECT COUNT(distinct AUG.sub_id) AS PUBLIC_COUNT,
ACC.account_title...
April 13, 2016 at 10:26 am
I ran the below on adventureworks2012 running on a sqlserver2012 instance version 11.03156 have reproduced the issue.
Had to change the code to get it to run on adventureworks.
The subquery throws...
April 13, 2016 at 9:47 am
Sean Lange (4/11/2016)
Forget about optimization for a second. Think about normalization.
+1
April 11, 2016 at 9:10 am
UserID is the surrogate key, so this should be used to identify the row in this table when referenced from other tables.
It is int, so smaller than storing strings in...
April 11, 2016 at 5:17 am
amitsingh308 (4/7/2016)
Create table OrdersDetails(OrderNo varchar(30),ItemNo Varchar(20),ItemName Varchar(50))
insert script is as under:
Insert into OrdersDetails (OrderNo,ItemNo,ItemName) Values('12231','1','sdfasfasd')
Now I want to change sequence number of ItemNo for...
April 11, 2016 at 2:32 am
Viewing 15 posts - 106 through 120 (of 388 total)