c# - Getting the schema for a table -


given sqlconnection object how can schema single table?

i trying other day , seemed able schema dataset i'd gotten running query, schema info connection seemed related tables available , not actual details on tables.

i'm sure there simple way this.

i think accessing schema query (via getschematable) way it. can run query returns no rows (select * table 1=2) if schema you're interested in.

you should use keyinfo commandbehaviour execute source query, otherwise not information returned guaranteed accurate

command.executereader(commandbehavior.keyinfo) 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -