SqlCeParameter and ParameterDirection.Output

R

Rüdiger Kardel

Hi,

the second line of the source:

SqlCeParameter orderIDParameter = new SqlCeParameter("@OrderID",
SqlDbType.Int, 4);
orderIDParameter.Direction = ParameterDirection.Output;

throws the exception:
"Invalid direction 'Output' for '@OrderID' parameter."

What am I doing wrong?
As far as I understood, "ParameterDirection.Output" should be supported by
CF

Env.:
VS2008
CF 2.0
WM 5.0
Microsoft SQL Server Compact Edition\v3.5\

regards
Ruediger
 
G

Ginny Caughey MVP

Hi Ruediger,

I'm glad you got it working.

Unfortunately I won't be in Hamburg this year due to a scheduling conflict.
Dieter can tell you all about it, but I hope to make it back to Germany the
following year.
 

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