|
Who told you the question mark must be used? Wasn't your original good?
SqlConnection MyConn = new .........
string sql = "select * from members where userName = @ name";
SqlCommand MyComm = new SqlCommand (sql, MyConn);
MyComm.Parameters.Add ("@ name", SqlDbType.VarChar, 20);
......... |
|