Viewing 15 posts - 691 through 705 (of 3,011 total)
Sean Lange (11/30/2011)
Jeff Moden (11/30/2011)
November 30, 2011 at 7:55 am
GilaMonster (11/16/2011)
Michael Valentine Jones (11/16/2011)
use master;
alter database [MyDB] set allow_snapshot_isolation on;
alter database...
November 16, 2011 at 1:01 pm
Steve Malley (11/16/2011)
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
at the beginning of predominantly read-only stored procs. That way, you don't need the...
November 16, 2011 at 10:14 am
Using SNAPSHOT isolation or READ_COMMITTED_SNAPSHOT completely avoids any need to use NOLOCK and avoids its bad side effects.
Since this has been available since the release of SQL 2005, there is...
November 16, 2011 at 10:09 am
ben.brugman (11/15/2011)
Michael Valentine Jones (11/14/2011)
Restore the DB onto the Dev server, and then make a snapshot.
To which snapshot technique are you refering?
We have a single development database but about 20...
November 15, 2011 at 7:28 am
GilaMonster (11/14/2011)
Ninja's_RGR'us (11/14/2011)
I'd start with, is there more code here?1 sec for this is extreme.
However note that the CPU time is 0.
Maybe the hidden code is:
waitfor delay '00:00:01.000'
π
November 14, 2011 at 3:40 pm
My guess would be that there is more code on other lines within the TextData column that is not showing in the grid view.
Try looking at the TextData in a...
November 14, 2011 at 1:34 pm
Restore the DB onto the Dev server, and then make a snapshot.
Then you can run normal testing with transactions, and restore the database from the shapshot when you are done....
November 14, 2011 at 9:49 am
If it is critical to have TmpID in order by RealSort, you should use ROW_NUMBER()
DECLARE @TMP TABLE( TmpID INT, TmpDATA VARCHAR);
INSERT INTO @TMP (TmpID, TmpDATA)
SELECT
ROW_NUMBER() OVER(ORDER BY RealSort) as TmpID,
RealDATA
FROM...
November 14, 2011 at 8:32 am
The biggest issue is that when you add or drop a column the query will return a different result set and the application will not be prepared for the change...
November 14, 2011 at 8:18 am
assefam (11/11/2011)
November 11, 2011 at 10:52 am
select DT = dateadd(dd,-6,dateadd(dd,((datediff(dd,-53684,dateadd(mm,datediff(mm,0,getdate())-1,6)+7)/7)*7)-7,-53684))
Results:
DT
-----------------------
2011-09-26 00:00:00.000
November 11, 2011 at 8:06 am
Object changes are recorded in the default trace, so the details of when the change happened should already be available if the the default trace files haven't rolled over yet.
November 11, 2011 at 1:27 am
This would be a good time to review the application to see if there is truly a need to use a serializable isolation level.
Itβs likely that that a less restrictive...
November 8, 2011 at 3:08 pm
I just thought of the ultimate captive audience:
The Marine boots in the movie Full Metal Jacket being subjected to the spectacular profanity of Gunnery Sergeant Hartman (played by R. Lee...
November 8, 2011 at 9:14 am
Viewing 15 posts - 691 through 705 (of 3,011 total)