私は「@」を使用しなければなりません(名前はわかりません)。私はこれだけの行が正しくないと仮定することができますどのように@を選択SQL文に入れることができますか?
//SQL string to count the amount of rows within the OSDE_Users table
string sql = "SELECT * FROM RSSFeeds where URL = @URL";
SqlCommand cmd = new SqlCommand(sql, Connect());
cmd.Parameters.Add("@URL", SqlDbType.VarChar, 500).Value = url;
closeConnection();
SqlDataAdapter adapt = new SqlDataAdapter(sql, Connect());
DataSet ds = new DataSet();
adapt.Fill(ds);
// result of query filled into datasource
adapt.Dispose();
closeConnection();
return ds;
を動作するはず?私はそれがないと感じる。 –
が '' URL' INT'です何 – Ryan
@minitech良いキャッチ。 –