hi all
select sql query to find default contraint on particular table for checking is constrint on particular table prasent or not.
plz help..
How To Get Constarint using select query
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Shankar MRank #874 · 2.5K reputationPosted Nov 12, 2012, 12:18 AM EST
This gets you what you are expecting..
select * from sys.default_constraints;
Thanks,
Shankar
Shankar MRank #874 · 2.5K reputationPosted Nov 9, 2012, 6:13 PM EST
You can use sp_help command to get the Data Dictionary for the Tables.
Something like this,
sp_help EMP;
Here EMP is the Table Name.
Thanks,
Shankar
Mai Hu Na84 reputationPosted Nov 11, 2012, 9:01 PM EST