Programming, SQL, SQL Server 2000, SQL Server 2005, SQL Server 2008, Transact-SQL, tSQL

Querying SQL Server 2008 and 2000 System Objects Table

The syntax to query the system objects table has changed slightly from SQL Server 2000 to SQL Server 2008, but the useful data stored about your server objects is still very good to have access to. It’s worth noting that both DDL and DML trigger information is not stored in the system objects table, but can be viewed in sys.triggers.

As an example, the syntax to query the system objects table in SQL Server 2008 is:

SELECT * FROM sys.objects ORDER BY modify_date

A similar query in SQL Server 2000 by contrast would go against the sysobjects table. Here is a SQL SErver 2000 query that looks through user created objects for ones starting with the text ‘AddressInfo’;

Continue reading “Querying SQL Server 2008 and 2000 System Objects Table”