By constraints I mean checks, not nulls, primary key constraint, foreign key constraint
What SQL query to use
Visual Studio 2008 / SQL Server 2005 Express
Like for example to get table names
commandString = "SELECT * FROM INFORMATION_SCHEMA.TABLES";
So what to get constraints.
You can use the sys.objects table to get this info, check this query to get all Constraints of an table .