Forum Replies Created

Viewing 15 posts - 2,146 through 2,160 (of 8,416 total)

  • RE: Are the posted questions getting worse?

    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...

  • RE: Paramaterized query

    onixsoft (2/24/2011)


    So now I have 2 choices: change Prod database to compatible mode SQL2005 and Parameterization = Forced or replace most used queries to use Stored Procedures instead dynamic queries...

  • RE: Locking Question: sys.dm_tran_locks

    glennhill (2/24/2011)


    I started to put a spreadsheet together with my analysis - and in the process of doing that discovered some results I had forgotten that might help me. I...

  • RE: Delete duplicate rows

    Right.

    SELECT A.NameA, C.NameC

    FROM #TempA AS A

    CROSS

    APPLY (

    SELECT TOP (1)

    ...

  • RE: Is this a Single Resource Deadlock?

    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...

  • RE: Is this a Single Resource Deadlock?

    Alex Webber (2/24/2011)


    Just to add, I can't find anywhere that we're using SERIALIZABLE isolation level (we have no TransactionScope usage either) but after googling around there appear to be one...

  • RE: How to tune text queries

    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:

  • RE: Are the posted questions getting worse?

    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.

  • RE: Paramaterized query

    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 ...

  • RE: Return records at least 10 minutes apart from last valid record without CURSOR

    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#)...

  • RE: Weird exception raised by server

    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?

  • RE: Delete duplicate rows

    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...

  • RE: Paramaterized query

    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...

  • RE: Locking Question: sys.dm_tran_locks

    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,...

  • RE: Is this a Single Resource Deadlock?

    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 ...

Viewing 15 posts - 2,146 through 2,160 (of 8,416 total)