Forum Replies Created

Viewing 15 posts - 3,271 through 3,285 (of 15,381 total)

  • RE: Are the posted questions getting worse?

    BWFC (2/11/2015)


    It's funny. When it snows in my area (usually get 1 snow/ice storm per year, of no more than 4 to 6 inches), we get all of the...

  • RE: How to kill current queries taking most cpu.

    GilaMonster (2/11/2015)


    Sean Lange (2/11/2015)


    admin 31599 (2/11/2015)


    --Current queries

    SELECT

    r.session_id,

    s.TEXT,

    r.[status],

    r.blocking_session_id,

    r.cpu_time,

    r.total_elapsed_time

    FROM sys.dm_exec_requests r

    CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS s

    Find blocking_session_id or heavy one and then

    kill #

    If using this script very often the next step...

  • RE: How to kill current queries taking most cpu.

    Jeff Moden (2/11/2015)


    Sean Lange (2/11/2015)


    admin 31599 (2/11/2015)


    --Current queries

    SELECT

    r.session_id,

    s.TEXT,

    r.[status],

    r.blocking_session_id,

    r.cpu_time,

    r.total_elapsed_time

    FROM sys.dm_exec_requests r

    CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS s

    Find blocking_session_id or heavy one and then

    kill #

    If using this script very often the next...

  • RE: How to kill current queries taking most cpu.

    admin 31599 (2/11/2015)


    --Current queries

    SELECT

    r.session_id,

    s.TEXT,

    r.[status],

    r.blocking_session_id,

    r.cpu_time,

    r.total_elapsed_time

    FROM sys.dm_exec_requests r

    CROSS APPLY sys.dm_exec_sql_text(sql_handle) AS s

    Find blocking_session_id or heavy one and then

    kill #

    If using this script very often the next step is go to...

  • RE: Redirect insert data into another column

    dajonx (2/10/2015)


    Thank you for your response.

    That's what I thought (the checks occur before the trigger firing), but I couldn't find that info in writing anywhere. Unfortunately, the [ColumnB] is...

  • RE: How to kill current queries taking most cpu.

    Jeff Moden (2/10/2015)


    Joy Smith San (2/9/2015)


    I am planning to give them rights to find and kill their queries, if they cannot fine tune it.

    Really, [font="Arial Black"]REALLY [/font]bad idea.

    Plus a...

  • RE: Redirect insert data into another column

    dajonx (2/10/2015)


    Hi,

    I was wondering if there was a way to redirect an insert to another column...

    Example:

    Original Insert Statement:

    INSERT INTO ([columnA], [columnB])

    SELECT '2015-01-01 00:00:00', 99.99

    We have changed [columnB] from...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (2/10/2015)


    Supposed to be 50s the next week. Getting warmer in the mountains as well, which sucks. Supposed to ski this weekend.

    You can have it back....

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (2/10/2015)


    Sunny and 45F in Denver 😀

    Thanks for blowing that to the East. It warmed up quite nicely today to about the same thing. The temp...

  • RE: incrementing alpha string using SQL

    Jeff Moden (2/9/2015)


    K2mission (2/9/2015)


    Sean,

    The thought was to allow for as many 6-character combinations as possible. Using the alphabet along with numbers offered 2,176,782,336 combinations whereas numbers alone would only offer...

  • RE: Performance of the SQL MERGE vs. INSERT/UPDATE

    Andy DBA (2/9/2015)


    venoym - The OUTPUT clause was first introduced in MS SQL Server 2005.

    venoym and Sean - Please re-read the only bold font sentence in my last post and...

  • RE: Performance of the SQL MERGE vs. INSERT/UPDATE

    venoym (2/9/2015)


    Andy DBA (2/6/2015)


    Thanks Kevin and Sean for the informative links. After reading them I'm actually less concerned about using MERGE for copy forward operations.

    I apologize for not posting...

  • RE: Help Me with query, please

    abendigeri (2/6/2015)


    You made my day...Thankyou so much.

    Yes i know the data is really bad...But this data is being extracted from some other multiple source and then it has to be...

  • RE: Help Me with query, please

    Your data is real disaster here to say the least. Not sure why your data is so sparse but whatever, it just adds another step in the process.

    First we...

Viewing 15 posts - 3,271 through 3,285 (of 15,381 total)