Quantcast
Channel: Oledb Command error
Browsing all 9 articles
Browse latest View live

Re: Oledb Command error

well, the idea of that code is not to supply null to OleDbType.Date parameter but DBNull.ValueYou could change it in more "detailed" way asif (orderedOn != null) myComm.Parameters.Add("@OrderDate",...

View Article



Re: Oledb Command error

smirnov myComm.Parameters.Add("@OrderDate", OleDbType.Date).Value = orderedOn ?? DBNull.Value;I am getting error as Operator ?? cannot be applied to operands of System.Datetime and System.DBNull

View Article

Re: Oledb Command error

smirnov myComm.Parameters.Add("@OrderDate", OleDbType.Date).Value = orderedOn ?? DBNull.Value;I am getting error as Operator ?? cannot bw applied to operands of System.Datetime and System.DBNull

View Article

Re: Oledb Command error

hans_v The OleDbCommand constructer expects a OleDbConnection object as the second parameter (myConn)Acutally I defined like thisOracleConnection myConn = new...

View Article

Re: Oledb Command error

Nadeem157 OleDbCommand myComm = new OleDbCommand(insertUpdateQuery, myConn); // i am getting that error hereThe OleDbCommand constructer expects a OleDbConnection object as the second parameter...

View Article


Re: Oledb Command error

Did it help? See my P.S. above.

View Article

Re: Oledb Command error

Yeah, correct, I copy pasted that. I already corrected that

View Article

Re: Oledb Command error

Nadeem157 myComm.Parameters.Add("@Sent", OleDbType.Boolean).Value = "yes";Nadeem, I guess it says it expects true/false instead of string here, i.e.myComm.Parameters.Add("@Sent",...

View Article


Oledb Command error

I am writing command to execute my program but I am getting error asthe best overloaded method match for system.data.oledb.oledbcommand has some invalid argument errorHere is my code:-for (int i = 0; i...

View Article

Browsing all 9 articles
Browse latest View live




Latest Images