Difference between sys.objects and sysobjects

30 May,2014 by Jack Vamvas

Question:What is the difference between sysobjects and sys.objects?

Answer:  SQL Server Books Online is the best source of information about system tables. In summary:

1)     From SQL Server 2005 , a number of system tables were implemented as compatibility views – satisfying backward compatibility. Sysobjects is an example of a backward compatibility view.  Sysobjects is not a table but a view

2)     The compatibility views expose the equivalent of the SQL Server 2000 metadata but don’t expose the SQL Server 2005 features metadata

3)     If using new features , such as Partitioning , use  sys.objects rather than compatibility views

4)     In code reviews I still see wide usage of compatibility views such as sysobjects. Consider changing to the newer versions

Read More

Top 10 DBA Tips to develop your competitive edge

DBA Resume FAQ

DBA Ignorance , complacency and arrogance experiment

 


Author: Jack Vamvas (http://www.sqlserver-dba.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on Difference between sys.objects and sysobjects


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer