Error:
Incorrect syntax near the keyboard 'as'.
Code:
private void btnUpdate_Click(object sender, EventArgs e)
{
try
{
string str_connection = "Data Source = MSSQLServer058; Initial Catalog = CarRental; Integrated Security = True";
string MyUpd = "Update [dbo].[Booking] as t1, Car as t2, Customer as t3 " +
"set t1.[CustomerID] = '" + lblCustomerID.Text + "'," +
"t1.[VIN] = '" + lblVIN.Text + "'," +
"t3.[DriverLicNo] = '" + DriverLicNotxt.Text + "'" +
"t2.[Make] = '" + txtMake.Text + "'" +
MessageBox.Show("Save Complete!", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}