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?


Comments

  1. This is such a nice content! Will look forward for more. Totally for the mind!

    ReplyDelete

Post a Comment

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -