سلام مشکل کد پایین چیه که به هیچ عنوان چیزی توی جدول ذخیره نمیکنه :
If Coection.State = CoectionState.Closed Then Coection.Open()
Dim cmd As New SqlCommand("Insert Into tblkala (name) Values (@name)", Coection)
cmd.Parameters.AddWithValue("@name", "aliiiiii")
cmd.ExecuteNonQuery()
Coection.Close()
End If
اینم کانکشن من :
Dim Coection As New SqlCoection("Server=(localdb)v11.0;Integrated Security=true;AttachDbFilename=|DataDirectory|dbs hop.mdf;")
باتشکر
برچسب:
نویسنده: محمد رضا جوادیان