1
sqlComm.Connection = sqlConn;
sqlComm.Parameters.AddWithValue("@Kullanici", Kullanici);
sqlComm.Parameters.AddWithValue("@Sifre", Sifre);
sqlComm.Parameters.AddWithValue("@Ad", Ad);
sqlComm.Parameters.AddWithValue("@Soyad", Soyad);
sqlComm.Parameters.AddWithValue("@Parametre", rndParametre);
sqlComm.CommandText = "INSERT INTO Kullanici (EPosta,Sifre,Ad, Soyad,Aktif,Parametre, __DZamani) " +
" VALUES (@Kullanici,@Sifre,@Ad,@Soyad, 0,@Parametre,getdate()); SELECT RecID FROM Kullanici WHERE EPosta= "+ Kullanici;
sqlConn.Open();
SqlDataReader sqlRead = sqlComm.ExecuteReader();
while (sqlRead.Read())
{
RecID = Convert.ToInt32(sqlRead["RecID"]);
}
sqlConn.Close();
我有錯誤:多部分標識符「[email protected]」無法綁定 如何解決這個錯誤?你有什麼主意嗎?多部分組成的標識符「XXX」無法綁定
謝謝你的答案 – Bip