hi all
select sql query to find default contraint on particular table for checking is constrint on particular table prasent or not.
plz help..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shankar MPosted Nov 12, 2012, 5:18 AM
This gets you what you are expecting..
select * from sys.default_constraints;
Thanks,
Shankar
Mai Hu NaPosted Nov 12, 2012, 2:01 AM
Shankar MPosted Nov 9, 2012, 11:13 PM
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