R
Robby.White
I am trying to write to a text file using JET and
ADO.NET, however I am getting the "syntax error in insert
into statement" even though my column names are all
original. I think the problem is with the
OleDbCommandBuilder as when I build an INSERT statement
for the OleDbCommand manually it writes successfully to
the text file. Is this a known problem? Here are my
details;
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents
and Settings\Administrator\My Documents\Visual Studio
Projects\Aurora\bin\Data\;Extended
Properties=Text;Persist Security Info=False
[Body for Tesco Events.prn]
Format=FixedLength
Col1=Event Text Width 6
Col2=Junk Text Width 2
Col3=Description Text Width 29
Col4=Type Text Width 1
Thanks, Robby
ADO.NET, however I am getting the "syntax error in insert
into statement" even though my column names are all
original. I think the problem is with the
OleDbCommandBuilder as when I build an INSERT statement
for the OleDbCommand manually it writes successfully to
the text file. Is this a known problem? Here are my
details;
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents
and Settings\Administrator\My Documents\Visual Studio
Projects\Aurora\bin\Data\;Extended
Properties=Text;Persist Security Info=False
[Body for Tesco Events.prn]
Format=FixedLength
Col1=Event Text Width 6
Col2=Junk Text Width 2
Col3=Description Text Width 29
Col4=Type Text Width 1
Thanks, Robby