OleDbConnection con = new OleDbConnection(constring);
con.Open();
string qry2 = "select * from [dbo.TblCategory] where Name=?";
OleDbCommand cmd = new OleDbCommand(qry2, con);
System.Data.OleDb.OleDbParameter p = new OleDbParameter("@p1", OleDbType.VarWChar);
p.Value="demo";
cmd.Parameters.Add(p);
OleDbDataReader rdr = cmd.ExecuteReader();
It throws error type is not supported.when i use SqlCeCommand ,error does not occurs. i need it to work with Oledb anuy idea?
i use sqlserver 2005 compact edition.c#.net 2.0