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
Post a Comment