SqlCeParameter and ParameterDirection.Output

  • Thread starter Thread starter Rüdiger Kardel
  • Start date Start date
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
 
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.
 
Back
Top