Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Understanding sys user / schema

$
0
0
Hi all,I am puzzled by "sys".-- use testdb;In a testdb database -> security -> users -> i saw sys.In the same user database -> security -> schemas -> i saw sys and its owner = sys.So sys schema owner is sys, but double click on user "sys" under "Owned schema"1) I do not see sys owning the sys schema.2) 1) I do not see the sys schemaq1) why ?===As i am now inside testdb database. I would believe select from sys will reflect data from the sys schema INSIDE testdb.select db_name(), * from sys.databases;I saw both user databases and system database;q2) I thought the master database would store databases information,so querying sys.databases in master db would allow me to see all the other databases.Why querying sys inside user database allow me to do the same ?is sys schema inside userdb = sys schema in masterdb ?Regards,Noob

Viewing all articles
Browse latest Browse all 6525

Trending Articles