sql - what does EXEC master.. Do? -


i have seen like:

exec master.dbo.xp_cmdshell 

what master refer to?

update
, why followed 2 points:

 master.. 

generally use master.dbo. correct, why people write master..?

master 1 of default sql server system databases. can tell because posted:

exec master.dbo.xp_cmdshell 

...uses 3 name notation. "master" in database position, "dbo" schema, , "xp_cmdshell" function/stored procedure in case. use notation referring tables , views, in different contexts.

this:

exec master..xp_cmdshell 

...just omits schema, isn't idea if there more 1 schema being used in database.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

android - layout with fragment and framelayout replaced by another fragment and framelayout -