SqlClient CE parameters

R

Rob Gravereaux

I coded a small CE test app (C#, .Net 2003) that retrieves data from SQL
Server using the SQLClient objects. Retrieving data with a SqlDataAdapter
works fine. SqlCommand objects work OK without parameters, but when I add a
parameter and try to execute a SqlCommand, I get an error
'System.Data.SqlClient.SqlError: Line 1: Incorrect syntax near
'spRetrieveUser2''

Has anyone run into this? I can't find any good documentation on using
parameters for SQLClient for CE.

Thanks.

--
______________________________
Rob Gravereaux
Principle Software Developer
Glen Road Systems, Inc.
http://www.grsinc.com
 
R

Rob Gravereaux

....Nevermind

I was executing a stored procedure and forgot to set cmd.CommandType =
CommandType.StoredProcedure.
 

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