about duplicate spid''s ??

  • i've noticed a few times this month that some backups were hanging, and

    upon looking at the current running processes i noticed some duplicate

    spids.

    in no case should there be a duplicate spid.

    in any event i'm trying to create a job that will run as script that basically

    loops through the spids to determine if there are duplicate spids. if it finds

    any it will run a (kill) on the spids in order to prevent it from hanging. i'm

    running it as a job so that i can schedule it to stop after x duration.

    don't know where to begin cause never compared spids against other spids.

    any ideas?

    _________________________

  • The duplicates you are seeing are probably threads for a SPID. This is quite normal and is probably not the cause of your problem.

  • 1) What sort of backups are you talking about? Database, Transaction Log etc.

    2) How have you determined that the Backups hang?

    3) If doing Database Backups, how big are the Databases?


    Kindest Regards,

  • - duplicate spids are caused by parallelism.

    - they shouldn't interfere with backup activities

     

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • let me put it to you this way...

    for example: spid 110

    spid 110 full backup of database 'mydb1'

    spid 110 transaction log backup of 'mydb2'

    spid 110 dts package execution.

    not the ordinary parallelism as you can see, plus they can hange

    for days. at that point if i kill the processes i get the following:

    spid 110 killed/rollback

    spid 110 killed/rollback

    spid 110 killed/rollback

    and... the time to roll back is forever so i figure it would be best

    to create a job that runs for the duration of these jobs usually, and

    at the point the spids are the same.. then it will run to next step,

    and kill them to so the rollback isn't so long.

    thoughts?

    _________________________

  • sqlserver version and sp / hotfix ?

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply