Viewing 15 posts - 8,551 through 8,565 (of 49,571 total)
To start...
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
Can you post the deadlock graph? (you can get it out of the system health extended events session)
Also, https://www.simple-talk.com/sql/performance/sql-server-deadlocks-by-example/
July 3, 2014 at 10:34 am
Not sure about the exists, but it doesn't look like a loop is needed at all...
CREATE TABLE #RawData_Import
(ID int identity (1,1),
Code nvarchar(20),
TrackingReference bigint)
CREATE TABLE #UniqueCodes
(Code nvarchar(20),
TrackingReference bigint)
INSERT INTO #RawData_Import VALUES...
July 3, 2014 at 9:58 am
The first thing would be what the point of the partitioning is
July 3, 2014 at 9:21 am
CREATE TABLE #Table1 (col1 VARCHAR(10))
IF NOT EXISTS
(SELECT 1 FROM #Table1 WHERE col1 = 'Test')
BEGIN
INSERT INTO #Table1 (col1) VALUES ('Test')
END
Looks fine, works as...
July 3, 2014 at 9:20 am
You have one or more databases on the instance with a - in their name?
July 3, 2014 at 8:58 am
Michael Valentine Jones (7/3/2014)
GilaMonster (7/3/2014)
If that column is a date, then:
SELECT
dbclaimcnt, dbclaimentered
FROM
EPSClaimsUOA
WHERE
dbclaimentered...
July 3, 2014 at 8:48 am
Just to put things in perspective and explain where that myth comes from...
During the development of SQL Server 7, a particular piece of reference hardware in the MS lab was...
July 3, 2014 at 8:47 am
If that's in the Accidental DBA book, I'll have to have words with the technical editor (oh wait, that was me). That's an error
No, they're not. The costs are not...
July 3, 2014 at 8:08 am
Identify the query being run, run it in a representative test environment, identify the slow parts. Tune the query to be faster.
Could be any number of reasons why it times...
July 3, 2014 at 8:03 am
Neither cost threshold nor subtree costs are measured in minutes. They're a unit-less number that only makes sense when compared to another cost.
A query of cost 14 should be faster...
July 3, 2014 at 7:40 am
Well firstly start by fixing that silly threshold value. 300 is insanely low for a sustained value for PLE, unless you still have a server with < 4GB memory
Chapter 4:...
July 3, 2014 at 7:26 am
Add User1 as a database user on database B and grant them update rights on the table in question, then just UPDATE DatabaseB.dbo.TableB ....
July 3, 2014 at 6:57 am
Do note that using functions on the columns like that prevents any index seek for that predicate.
If that column is a date, then:
SELECT
dbclaimcnt, dbclaimentered
FROM
EPSClaimsUOA
WHERE
dbclaimentered >= '2014-01-01' and dbclaimentered...
July 3, 2014 at 6:00 am
The WAITFOR wait type means that the session is running the WAITFOR statement. Hence, if you're seeing that wait, the app is running that statement. Look through that app's code...
July 3, 2014 at 2:30 am
I'd use a filtered unique index to enforce that.
CREATE TABLE SomeTable (
Version INT
IsActive BIT NOT NULL
)
CREATE UNIQUE INDEX idx_SomeTableVersion ON SomeTable (Version)
WHERE (IsActive = 1)
July 3, 2014 at 2:20 am
Viewing 15 posts - 8,551 through 8,565 (of 49,571 total)