MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
Shared Function deleteit(ByVal thedate As DateTime, ByVal myname As String) As Integer Dim con As New SqlConnection(local) Dim cmd As New SqlCommand cmd.Connection = con Try con.Open() Dim theres As Integer cmd.Parameters.AddWithValue("@date", thedate) cmd.Parameters.AddWithValue("@myname", myname) cmd.CommandText = "Delete * from Holidays where Date=@date and UserName = @myname" theres = cmd.ExecuteScalar() Return theres Catch ex As Exception Throw ex Finally con.Close() End Try End Function
|How to share My.Settings in multiple application instances ?||7||48|
|how to hit button in form and close application from main()||4||33|
|VS 2015 is giving [No relevant source lines]||2||38|
|What are the best practices for using, and differences of, DataSet, DataView and DataTable?||3||22|