下面的查詢是給我一個不正確的語法錯誤不正確的語法錯誤
dt = sFunctions.ExecuteQuery(Variables.con, "House_Machinery", "usp_housemachinery_Master_insert" + Id + ",'" + txtItemName.Text + "'," + txthp.Text + "," + txtrate.Text + "," + Variables.sTendercode + "," + Variables.StrResourceHeaderCode);
sFunctions.setSqldbConnCommand_Close(sSqldbCommand);
錯誤如下:
incorrect syntax near ','
沒有人有任何見解,以我的問題的根源?
它仍然有相同的錯誤。
這似乎對[SQL注入](http://en.wikipedia.org/wiki/SQL_injection)開放。 – Oded
'usp_housemachinery_Master_insert'的價值是什麼? –
@JoachimIsaksson它的存儲過程的名稱 –