Could someone please point me in the right direction. what I want to be able to do is have an OleDbDataAdapter filled by using a stored procedure. I have used stored procedures with DataReaders:
varProjSQLConn is my connection string
But when trying to use it with a DataAdapter I cant seem to figure out the correct code, I need some help on this one.
Thanks in advance
Simon
varProjSQLConn is my connection string
Code:
Dim myCmd As New OleDb.OleDbCommand("spQryDisp")
myCmd.Connection = varProjSQLConn
myCmd.CommandType = CommandType.StoredProcedure
Dim myReader As OleDb.OleDbDataReader
varProjSQLConn.Open()
myReader = myCmd.ExecuteReader()
varProjSQLConn.Close()
But when trying to use it with a DataAdapter I cant seem to figure out the correct code, I need some help on this one.
Thanks in advance
Simon