0

How do I get the name of a columns default contraint on a SQL Server 2000 installation? As far as I know sys.default_constraints is not available. Its different on every DB, the structure is like DF_table_column__3DE8FB0E for example.

Thanks :)

grady
  • 12,281
  • 28
  • 71
  • 110

1 Answers1

0

Try using INFORMATION_SCHEMA, SQL Server's implementation of the SQL 92 self-describing features.

SELECT * FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
Paul Alan Taylor
  • 10,474
  • 1
  • 26
  • 42