Forum Replies Created

Viewing 15 posts - 136 through 150 (of 171 total)

  • RE: How to: Check which query causing the most cpu usage?

    GilaMonster (9/29/2010)


    arr.nagaraj (9/29/2010)


    Default trace contains the recently ran queries along with a few useful information

    like CPU, starttime etc. .. Probably can help your root cause analysis

    The default trace does not...

  • RE: Queries running slow

    Ninja's_RGR'us (9/28/2010)


    Am I the only one NOT seeing a plan in that excel file??

    The file attached is the results of my query of the execution plan, that's the only way...

  • RE: Queries running slow

    LutzM (9/27/2010)


    I don't think killing processes is the right approach here or in most other scenarios.

    What processes do you usually kill and what status those are at?

    You should run profiler...

  • RE: Transcation does not execute

    Chris Morris-439714 (9/24/2010)


    Have you tried following the steps recommended by Winash?

    I have been trying to query the OR statements one at a time but it is still the same issue.

  • RE: Transcation does not execute

    Chris Morris-439714 (9/24/2010)


    What happens when there's a row in one table but not the other (matching on OrderID)?

    Run these two queries and describe the output:

    SELECT sc.OrderID, sd.OrderID

    FROM supplydates sc

    LEFT...

  • RE: Transcation does not execute

    Chris Morris-439714 (9/23/2010)


    tt-615680 (9/23/2010)


    ...

    I get the same problem when I just run the query by itself.

    The whole point of the query is to get all the updated data from...

  • RE: Transcation does not execute

    Chris Morris-439714 (9/23/2010)


    What are you expecting to see?

    Why are you wrapping these two statements inside a transaction?

    What do you see if you remove INTO #UpdatedValue from your first query?

    The reason...

  • RE: Query takes too long to run

    Chris Morris-439714 (9/17/2010)


    tt-615680 (9/17/2010)


    I have the following query, which does an update statement but everytime I run it it took about 1hr and 20 mins to run so I created...

  • RE: Blocked job

    CirquedeSQLeil (9/15/2010)


    I don't see any transaction blocks. Do you have begin trans and commit trans in the original code?

    With eleven update statements, it could be useful to isolate each...

  • RE: Blocked job

    CirquedeSQLeil (9/14/2010)


    It would be extremely useful to post the tsql for this job. An execution plan of the tsql would also be highly useful.

    ALTER PROC [dbo].[storedprocedurename]

    AS

    DECLARE @paramnameAS DATETIME

    SELECT

    @paramname=...

  • RE: Blocked job

    Steve Jones - Editor (9/14/2010)


    I'm not really clear what you're looking for in the job? Perhaps you could explain it better and include some code that might help?

    What the code...

  • RE: Blocked job

    Abhijit More (9/14/2010)


    Please provide more information on Job, what does it do?

    What the code does is, it looks for any data that has been inserted one day before in one...

  • RE: Blocked job

    Toby White (9/14/2010)


    These wait types look like the T-SQL is running in parallel and result sets are being combined. However, I am curious what you are looking at that is...

  • RE: Backup

    tt-615680 (8/26/2010)


    GilaMonster (8/26/2010)


    What's the wait type for the process while that backup is running?

    Edit: Is that extra quote in your statement a typo?

    Should be

    BACKUP DATABASE 'Databasename' TO DISK = 'E:\'filename.BAK'...

  • RE: Backup

    GilaMonster (8/26/2010)


    What's the wait type for the process while that backup is running?

    Edit: Is that extra quote in your statement a typo?

    Should be

    BACKUP DATABASE 'Databasename' TO DISK = 'E:\'filename.BAK'

    not...

Viewing 15 posts - 136 through 150 (of 171 total)