database - how to use OleDbDataReader -


I am totally new to vb.net, I am trying to create a database connectivity using the access database I am Everything goes well, but whenever I create an object of OleDbDataReader it shows an error. OleidiDidder is not available in this context because it is 'friend'

Here is my code:

  New OleDbConnection con = new string as OleDbConnection (connectionString) string = "My query" Dim cmd New OleDbCommand (Query, con) con.open () New as a reader in the form of dim ODDDITER // here as a reader Uti comes. Read () is the end of my code while   

my import

  import system.Data.Oldibi Anyone can tell me where I am wrong .  
--text "itemprop =" text ">

You can not create a reader by yourself - a command object For your:

  Dual CMD in the form of new OLED COMM (query, choice) con.open () dim reader = cmd.ExecuteReader () while reader.read ()    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -