Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Question about a process Expand / Collapse
Author
Message
Posted Thursday, January 2, 2014 4:48 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 2:46 AM
Points: 215, Visits: 861
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'
Post #1527037
Posted Thursday, January 2, 2014 5:03 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 2:46 AM
Points: 215, Visits: 861
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'
Post #1527041
Posted Thursday, January 2, 2014 5:27 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 10:09 AM
Points: 15,661, Visits: 28,050
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
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1527053
Posted Thursday, January 2, 2014 5:45 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:58 AM
Points: 42,820, Visits: 35,948
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 2008, MVP
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

Post #1527059
Posted Thursday, January 2, 2014 5:47 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 2:46 AM
Points: 215, Visits: 861
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'
Post #1527060
Posted Thursday, January 2, 2014 5:47 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 2:46 AM
Points: 215, Visits: 861
Brilliant, thanks Gail/Grant - that has put my mind at ease!

D


'Only he who wanders finds new paths'
Post #1527061
Posted Thursday, January 2, 2014 5:56 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 10:09 AM
Points: 15,661, Visits: 28,050
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
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1527067
Posted Thursday, January 2, 2014 6:01 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 2:46 AM
Points: 215, Visits: 861
Yes, fully understood Thanks Grant.

'Only he who wanders finds new paths'
Post #1527071
Posted Thursday, January 2, 2014 6:20 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:58 AM
Points: 42,820, Visits: 35,948
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 2008, MVP
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

Post #1527078
Posted Thursday, January 2, 2014 6:28 AM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Yesterday @ 10:09 AM
Points: 15,661, Visits: 28,050
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.



----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1527083
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse