"Additional information: Object must implement IConvertible."

G

Guest

HI

I am using Microsft Data Access building block

And i am getting following error

An unhandled exception of type 'System.InvalidCastException' occurred in eval.ex

"Additional information: Object must implement IConvertible.

my code look like thi

SqlParameter paramFName = new SqlParameter("@FNAME",SqlDbType.Char,25)
paramFName.Value = "A"

SqlParameter []parm = new SqlParameter[1] {paramFName };
SqlHelper.ExecuteNonQuery(this.connectionstring1, "AddPatient", parm)


thanks in advanc
-p
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top