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();

エラーが発生しまし た: マルチパート識別子 "some@email.com" をバインドできませんでし た。このエラーを修正する方法を教えてください。何か考えはありますか?

4

1 に答える 1