Hi, I have a simple 'sproc' in access. If I run it from access it runs fine.
If I call the same code as a command string from my .net application it also runs and returns the values I'd expect.
If I use the code below to create a parameter set, in an attempt to call as a sproc, then I get the error
"Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done"
I have checked that all the sizes and datatypes match, so any more ideas?
If I call the same code as a command string from my .net application it also runs and returns the values I'd expect.
If I use the code below to create a parameter set, in an attempt to call as a sproc, then I get the error
"Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done"
I have checked that all the sizes and datatypes match, so any more ideas?
Code:
OleDbParameter p = new OleDbParameter("loginName",OleDbType.VarChar,15);
p.Direction = ParameterDirection.Input;
p.Value = tbLoginName.Text;
parameters[0] = p;
p = new OleDbParameter("password",OleDbType.VarChar,15);
p.Direction = ParameterDirection.Input;
p.Value = tbPassword.Text;
parameters[1] = p;
p = new OleDbParameter("roles",OleDbType.VarChar,50);
p.Direction = ParameterDirection.Output;
parameters[2] = p;
p = new OleDbParameter("guid",OleDbType.Char,36);
p.Direction = ParameterDirection.Output;
parameters[3] = p;