Viewing 15 posts - 2,146 through 2,160 (of 8,416 total)
Ian Scarlett (2/24/2011)
SQLkiwi (2/24/2011)
David Benoit (2/24/2011)
I remember when I took my first programming class, Pascal (Turbo actually)...I did a term using Turbo Pascal at University too.
OMG, that makes me feel...
February 24, 2011 at 9:08 am
onixsoft (2/24/2011)
February 24, 2011 at 9:06 am
glennhill (2/24/2011)
February 24, 2011 at 9:02 am
Right.
SELECT A.NameA, C.NameC
FROM #TempA AS A
CROSS
APPLY (
SELECT TOP (1)
...
February 24, 2011 at 8:50 am
Code to find sessions/requests using SERIALIZABLE:
-- Sessions
SELECT *
FROM sys.dm_exec_sessions AS S
WHERE S.transaction_isolation_level = 4
;
-- Active requests
SELECT *
FROM sys.dm_exec_requests AS R
WHERE...
February 24, 2011 at 8:32 am
Alex Webber (2/24/2011)
February 24, 2011 at 8:27 am
AJ-636201 (2/24/2011)
SQLKiwi this logic couldn't go over my head, my head caught it for forever 🙂
Excellent. I love it when I am wrong about that sort of thing. :laugh:
February 24, 2011 at 8:19 am
David Benoit (2/24/2011)
I remember when I took my first programming class, Pascal (Turbo actually)...
I did a term using Turbo Pascal at University too.
February 24, 2011 at 7:48 am
Well, this is what I see:
USE Sandpit
ALTER DATABASE Sandpit
SET PARAMETERIZATION SIMPLE
;
SET ANSI_NULLS, ANSI_PADDING, ANSI_WARNINGS, ARITHABORT, CONCAT_NULL_YIELDS_NULL, QUOTED_IDENTIFIER ON
;
SET ...
February 24, 2011 at 7:34 am
The logic is easier to express in loop form, so if you need speed and elegance, I would transfer the logic to your favourite .NET language (I would use C#)...
February 24, 2011 at 7:24 am
Might be wrong about SP2, consider moving up to a fully supported version like SP4.
Odd about the database thing - have you run a CHECKDB recently?
February 24, 2011 at 7:03 am
Mosafi (2/24/2011)
thanks for your answer, but the result is not that i suppose to get.
I noticed that, but assumed it was an error in your test data.
TableA value 1 matches...
February 24, 2011 at 6:58 am
I think I have a handle on this now, but I just want to be sure you see a successful auto-param in all cases (index, no index) for this form...
February 24, 2011 at 5:53 am
glennhill (2/24/2011)
Initially I was trying to make my question as succinct as possible. But sorry if you think I was withholding useful information.
I don't think you were doing it deliberately,...
February 24, 2011 at 5:28 am
Demo:
SET STATISTICS XML OFF;
SET NOCOUNT ON;
CREATE TABLE S (A INT IDENTITY PRIMARY KEY);
GO
INSERT S DEFAULT VALUES
GO 1000
BEGIN TRANSACTION
SELECT * FROM S WITH (SERIALIZABLE) WHERE A BETWEEN 501 AND 502;
SELECT ...
February 24, 2011 at 5:08 am
Viewing 15 posts - 2,146 through 2,160 (of 8,416 total)