浮かぶように私の最後のためのSystem.Data.SqlClient.SqlExceptionのnvarchar型は、私はこのコードで私のテーブルを更新しています
An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code
Additional information: Error converting data type nvarchar.
このコード作業何が起こったのか分かりませんでした。
常にclientsideに変換してください。 'Add'の代わりに' AddWithValue'を使うと 'decimal.Parse'を使った方がずっと多くなります。 –
JobQuotationsの列のデータ型は何ですか? – Lithium
このようなもの? 'cmd.Parameters.AddWithValue(" @ discount "、double.Parse(txtDisc.Text)); ' –