sorry guys i am a new programmer of vb.net so i need some help. i am not familiar with sql server, this is my code in inserting employee info. and it works fine, and my question is how to search this record using emp_id only
Dim mycommand As SqlCommand
myconnection = New SqlConnection("server=;uid=admin;pwd=;database=payroll")
myconnection.Open()
mycommand = New SqlCommand("INSERT INTO employee_info([employee_id],
[first_name],[last_name],[middle_name],[email],[telephone],
[gender],[status],[date_birth],[hire_date],[street_add],[city],
[state_province]) values ('" & Employee_idTextBox.Text & "','" &
First_nameTextBox.Text & "','" & Last_nameTextBox.Text & "','" &
Middle_nameTextBox.Text & "','" & EmailTextBox.Text & "','" &
TelephoneTextBox.Text & "','" & GenderTextBox.Text & "','" &
StatusTextBox.Text & "','" & Date_birthDateTimePicker.Value.Date &
"','" & Hire_dateDateTimePicker.Value.Date & "','" &
Street_addTextBox.Text & "','" & CityTextBox.Text & "','" &
State_provinceTextBox.Text & "')", myconnection)
mycommand.ExecuteNonQuery()
myconnection.Close()