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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -