Bilgiler > ExecuteNonQuerry Örneği(MS SQL)
ExecuteNonQuerry Örneği(MS SQL)
con.ConnectionString = ConfigurationManager.ConnectionStrings["yasinConnectionString"].ConnectionString;
bool sonuc = false;
con.Open();
SqlCommand yeniKitapKaydet = new SqlCommand("t-sql querry",con);
int result= yeniKitapKaydet.ExecuteNonQuery();
if (result > 0)
{
sonuc = true;
}
con.Close();
***