Question about a process

  • I have received an overnight alert about a blocked process, fine with that. The process was an ALTER INDEX statement, rebuild login was the service account but under the application it said Management Studio.

    So is someone actually using management studio, could there be an exception where an automated task uses this as the application name?

    Many thanks

    David

    'Only he who wanders finds new paths'

  • Actually, would a maintenance plan that is scheduled show as management studio rather than a sql agent job.

    'Only he who wanders finds new paths'

  • The application name is a connection string bit of information that you can put anything in. You could say "Bob" for the application and SQL Server wouldn't know what you're connecting from. So, it really doesn't narrow it down at all that it says "Management Studio."

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • david.alcock (1/2/2014)


    Actually, would a maintenance plan that is scheduled show as management studio rather than a sql agent job.

    Yes.

    A fact that I discovered the hard way the first time I tried implementing login triggers.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Grant Fritchey (1/2/2014)


    The application name is a connection string bit of information that you can put anything in. You could say "Bob" for the application and SQL Server wouldn't know what you're connecting from. So, it really doesn't narrow it down at all that it says "Management Studio."

    Sorry Grant, in full it says Microsoft SQL Server Management Studio (not with - Query btw), so could that be an automated maintenance task like I suspect or would only SSMS connections have this?

    possibly I am not following...

    D

    'Only he who wanders finds new paths'

  • Brilliant, thanks Gail/Grant - that has put my mind at ease! 🙂

    D

    'Only he who wanders finds new paths'

  • david.alcock (1/2/2014)


    Grant Fritchey (1/2/2014)


    The application name is a connection string bit of information that you can put anything in. You could say "Bob" for the application and SQL Server wouldn't know what you're connecting from. So, it really doesn't narrow it down at all that it says "Management Studio."

    Sorry Grant, in full it says Microsoft SQL Server Management Studio (not with - Query btw), so could that be an automated maintenance task like I suspect or would only SSMS connections have this?

    possibly I am not following...

    D

    It literally could be anything. But as Gail has already pointed out, it's how the connections from the automated maintenance task set their connections.

    Just to clarify, the application name you see when looking at a connection from SQL Server is not a literal representation of a given application. It's a string value supplied by the connection string from the app. Well written apps provide their name. Badly written apps provide nothing, or, as in this case, something misleading. But it can be anything.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Yes, fully understood 🙂 Thanks Grant.

    'Only he who wanders finds new paths'

  • Grant Fritchey (1/2/2014)


    Badly written apps provide nothing, or, as in this case, something misleading. But it can be anything.

    Implying that Management Studio is badly written (but we already knew that) 🙂

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • GilaMonster (1/2/2014)


    Grant Fritchey (1/2/2014)


    Badly written apps provide nothing, or, as in this case, something misleading. But it can be anything.

    Implying that Management Studio is badly written (but we already knew that) 🙂

    What?!? I would never imply such a thing. How dare you!

    I'm saying it outright.

    :hehe:

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 10 posts - 1 through 9 (of 9 total)

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