hi
I have some code of ADO.net to dynamically detect the database schema, what I need is how to get Unique columns constraints and Primary key constraints using SqlConnection GetSchema() method.
thanks
waleed_cs2000
0
Newbie Poster
Recommended Answers
Jump to PostWelcome waleed_cs2000,
GetSchema() Method return a DataTable instance.
Use "IndexColumns" argument to list the primary key meta info.var lst = dc.Connection.GetSchema("IndexColumns") ;
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.