c# - SqlException in .updateall after convert OLEDB to SQL Server -
i'm writing app in c# ms access backed (.accdb
). made call (on advisement) sql server better idea system, spent last 8 hrs re-coding sql server.
as background;
- changed oledb connection, command etc etc sql
- fixed parameters , variables
?
@value
- fixed sql string errors
now forms working exception of ones using binding done visual studio 'wizard' (if that's it's called).
i have 5 forms filled using
this.tbljobtableadapter.fill(this.websterdbdataset.tbljob);
they using datagridview
depending upon info.
on "save , close", code runs:
this.validate(); this.tbluserbindingsource.endedit(); this.tableadaptermanager.updateall(this.websterdbdataset); _owner.performrefresh(); this.close(); this.dispose();
this works 100% still .accdb
version (i'm checking backup) not sql server.
if press save , close , haven't changed anything, closes, if change field @ fails (from log):
data time:21/08/2017 12:12:20 am
exception name:incorrect syntax near '`'.
event name:system.windows.forms.mouseeventargs
control name:btnsave
error line no.:86
form name:frmjoblist
any ideas how can further debug this?
i thought did when adding try , catch sections, in end happening specific 5 forms used wizard instead of manually creating, binding , writing sql update strings for.
thanks advice/direction.
gangel
Comments
Post a Comment