G
Gordon Scrim
Hi All,
I am having trouble getting the following to compile in C#. The
System.Data.SqlDbType is not recognised. I have looked in the help and it
would seem that it should be available and all the examples of using
parameterized queries against a SQL Server CE database use it but I cannot
get it to compile.
SqlCeCommand cmd = new SqlCeCommand();
cmd.Connection = ceCon;
cmd.CommandText = "INSERT INTO CLIENT (CLIE_ID) VALUES (?)";
cmd.Parameters.Add("@CLIE_ID", System.Data.SqlDbType.NVarChar, 10);
Any help much appreciated.
Gordon
I am having trouble getting the following to compile in C#. The
System.Data.SqlDbType is not recognised. I have looked in the help and it
would seem that it should be available and all the examples of using
parameterized queries against a SQL Server CE database use it but I cannot
get it to compile.
SqlCeCommand cmd = new SqlCeCommand();
cmd.Connection = ceCon;
cmd.CommandText = "INSERT INTO CLIENT (CLIE_ID) VALUES (?)";
cmd.Parameters.Add("@CLIE_ID", System.Data.SqlDbType.NVarChar, 10);
Any help much appreciated.
Gordon