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
Post a Comment