c# - OdbcException was caught while firing the SQL query -
'admin_table_name' string array containing names of table taken input text file , 'table_index' index of array.so,while firing query below,"admin_table_name[table_index]" avoided throwing 'odbcexception caught' exception.what mistake making in code? please help.
cmd.commandtext = "show keys " + admin_table_name[table_index] + " key_name = 'primary'"; dr = cmd.executereader();
why use odbc? databases native drivers available. can post the complete string of commandtext before executing reader?
This is such a nice content! Will look forward for more. Totally for the mind!
ReplyDelete