posts - 50, comments - 168, trackbacks - 6

My Links

News



View Marcin Celej's profile on LinkedIn

Archives

Post Categories

October 2006 Entries

Adding SqlCeParameter programmatically requires @ with the parameter name
I am developing Pocket PC application at the moment and I use SQL Server 2005 Everywhere inside. I encountered some difference to other ADO.NET providers. The difference is in adding SqlCeParameter programmatically to a SqlCeCommand. Here is the code I had:SqlCeCommand select = new SqlCeCommand("select Version from Customer where ID = @id", connection);select.Paramete... System.Data.SqlDbType.BigIn... = id;object result = select.ExecuteScalar(); You can see that in the query there is...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Sunday, October 01, 2006 5:45 PM | Feedback (1) |

Powered by: