sys account gives users access to system objects such as system tables, system views, extended stored procedures, and other objects that are part of the system catalog. The
sys user owns these objects. Like the
INFORMATION_SCHEMA user, it cannot be dropped from the database.
If you are interested in viewing the specific objects owned by any of the special users discussed in these sections, you can use a
SELECT statement like the following:
--Find all objects owned by a given userSELECT name, object_id, schema_id, type_descFROM sys.all_objectsWHERE OBJECTPROPERTYEX(object_id, N'OwnerId') =USER_ID(N'sys')ORDER BY 1
SELECT in this example shows all the objects owned by the sys user. To change ...