Forum Replies Created

Viewing 15 posts - 121 through 135 (of 220 total)

  • RE: MERGE Statement DELETE from TARGET when not in SOURCE 'hanging'

    Cowboy DBA (6/21/2013)


    Assuming I've understood what you're on about you might have to do your delete as:

    DELETE FROM dbo.cart C

    LEFT OUTER JOIN

    ...

  • RE: MERGE Statement DELETE from TARGET when not in SOURCE 'hanging'

    Cowboy DBA (6/21/2013)


    This help?

    WHEN NOT MATCHED BY SOURCE AND

    ...

  • RE: MERGE Statement DELETE from TARGET when not in SOURCE 'hanging'

    Apologies I probably didn't make my self clear, the query wasn't hanging but was taking an age to execute to the point i would stop the query.

    I think it was...

  • RE: MERGE Statement DELETE from TARGET when not in SOURCE 'hanging'

    bugg (6/21/2013)


    Cowboy DBA (6/21/2013)


    Have you seen why it is hanging? Is it being blocked by another process?

    No its not getting blocked its on my dev SQL database.

    However I've just spotted...

  • RE: MERGE Statement DELETE from TARGET when not in SOURCE 'hanging'

    Cowboy DBA (6/21/2013)


    Have you seen why it is hanging? Is it being blocked by another process?

    No its not getting blocked its on my dev SQL database.

    However I've just spotted that...

  • RE: option (maxdop 1)

    Looks like this happened at same time as the index rebuild under the same spid.

    Has anyone else seen this before, that can perhaps provide a little more insight?

    Thanks

  • RE: option (maxdop 1)

    email-935809 (8/10/2010)


    I've noticed some blocking sessions caused by the following SQL but it's nowhere to be found in my SP's and Exe's. Anyone know what this is? Is...

  • RE: Deadlock on update command

    Michael Valentine Jones (4/19/2013)


    Since you are getting deadlocks between a select and an update, you can probably eliminate the problem by setting the database to use row version isolation (Read...

  • RE: Deadlock on update command

    ChrisM@Work (4/2/2013)


    The SELECT query is no longer using index IX_suspect_status_rsn_shipopt, it's now using IX_sessionID, same as the UDATE query, because of the changes made in the last iteration. Using IX_sessionID,...

  • RE: SQL disk config

    NJDave (4/19/2013)


    Hello - I need to approve a SQL disk configuration - I know it is best to put data, logs and tempdb on seperate drives but not sure how...

  • RE: Deadlock on update command

    ChrisM@Work (3/25/2013)


    OK got it. You need to change two indexes.

    1. Include orderhash and status in index IX_SessionID, like this:

    CREATE NONCLUSTERED INDEX [IX_sessionid] ON [dbo].[orderha]

    ([sessionid] ASC, OrderHash ASC) INCLUDE (Status)...

  • RE: Table design and query performance

    GilaMonster (3/27/2013)


    WHERE IDColumn LIKE 'XY%'

    Not like, being a function on the column it would be non-SARGable. Like with a trailing wildcard can use indexes.

    Thanks Gila, had to look up sargable...

  • RE: Deadlock on update command

    bugg (3/25/2013)


    ChrisM@Work (3/25/2013)


    OK got it. You need to change two indexes.

    1. Include orderhash and status in index IX_SessionID, like this:

    CREATE NONCLUSTERED INDEX [IX_sessionid] ON [dbo].[orderha]

    ([sessionid] ASC, OrderHash ASC) INCLUDE...

  • RE: Deadlock on update command

    ChrisM@Work (3/25/2013)


    OK got it. You need to change two indexes.

    1. Include orderhash and status in index IX_SessionID, like this:

    CREATE NONCLUSTERED INDEX [IX_sessionid] ON [dbo].[orderha]

    ([sessionid] ASC, OrderHash ASC) INCLUDE (Status)...

  • RE: Deadlock on update command

    ChrisM@Work (3/25/2013)


    This article linked in my sig explains in detail how to post execution plans. They're active - .png graphics are not.

    Right-click on the execution plan tab, select "Save...

Viewing 15 posts - 121 through 135 (of 220 total)