In this previous question I asked I found that constraints created with Create Index
do not exist in sys.objects
. I'm already using ReportSchema()
and looping through Indexes and IndexColumns collections.
Is there a way to determine the method a constraint was created by using the collections available to GetSchema()
or ReportSchema()
? If not is there a way to determine this without running a SQL Select statement?
Edit: Another possibility I am looking into using is using SMO. Is this a viable option? If so how would I go about doing so?