Incorrect syntax near ')'. ASP.net C# and sql
Hejjeg har probler med at jeg får Incorrect syntax near ')'. med linen myCommand.ExecuteNonQuery();
Kode
protected void OKButton_Click(object sender, EventArgs e)
{
if (MenunrText.Text == InScan)
{
SqlConnection myConnection = new SqlConnection(conn);
myConnection.Open();
SqlCommand myCommand = new SqlCommand("INSERT INTO TblIndUD(SN, IndOutScan, WhoIn, DTIn, StockStatus,) VALUES('" + SerienrText.Text + "','IN', '" + MnrTxt.Text + "'," + DT.ToString("MM/dd/yyyy HH:mm:ss") +" ', 'In stock')", myConnection);
myCommand.ExecuteNonQuery();
myConnection.Close();
}
}