I notice that when I query dbo.sysobjects, to determine all the objects in my database, it also picks up all system views whose name starts with ‘syncobj_’. These have an xtype of ‘V’ and there doesn’t appear to be any way I can know these are system views, and not my own, except by examining the name of the view. Is there some other way? I would like to exclude these from a query I’m in the process of creating.
Share
See
OBJECTPROPERTY:Use it something like:
It’s documentation is a bit off though – it also assists you with excluding other objects added "by" SQL Server at a later date also – e.g. any replication related objects are also considered to be
IsMSShipped.