The sys User

The 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.

Tip

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

The SELECT in this example shows all the objects owned by the sys user. To change ...

Get Microsoft SQL Server 2014 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.