How to fix it dataset issue

Posted by Jayakumars under ADO.NET on 1/19/2018 | Points: 10 | Views : 510 | Status : [Member] [MVP] | Replies : 0
hI

How to get datatable using storedprocedure in mysql only no need sql server
i tried my side but dictionary comes how to fix it

My Error like this

The given key was not present in the dictionary

any one guide me


My Code like this

command.Connection = connection;
command.CommandText = "GetReport";
command.CommandType = CommandType.StoredProcedure;
command.Parameters.AddWithValue("month", month);

var adapter = new MySqlDataAdapter(command);
var dataSet = new DataSet();
adapter.Fill(dataSet);

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com



Responses

(No response found.)

Login to post response