Insert fails with Oracle DataAdapter and date colum


B

Bent S. Lund

Hi,

the following parameter fails during insert using the OracleDataAdapter on a
9.2.0.5 server.
da.InsertCommand.Parameters.Add("@time",OracleType.DateTime,10,"time");

Any suggestions to what causes this? The value inserted is of datetime type.



Regards,



Bent
 
Ad

Advertisements

J

Jon Skeet [C# MVP]

Bent S. Lund said:
the following parameter fails during insert using the OracleDataAdapter on a
9.2.0.5 server.
da.InsertCommand.Parameters.Add("@time",OracleType.DateTime,10,"time");

Any suggestions to what causes this? The value inserted is of datetime type.
What kind of failure are you getting? If there's an exception, what
does it say?
 

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