I want to use mysqlconnection, command and datareader or sqlconnection, command and datareader based on a condition. I want to use same variables for both type of connection
Ex:
Currently i have
dim _c as New mySqlConnection()
dim _cmd as New mysqlCommand()
dim _reader as New mysqlreader()
_reader = _cmd.executereader()
'loop through _reader
-----------------
How can i change first three to use sql/mysql based on select case. Is this possible?