Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 17 Apr 2008 15:31:05 +0200,    group: microsoft.public.dotnet.framework.odbcnet        back       


OleDbCommandBuilder generated statements   
Hi, here is my situation:
I fill up a dataset with two tables(with already data in it) inside.
I attach this dataset to a dataadapter so I can write any inserted objects 
in the dataset into my database.
Then I use the OleDbCommandBuilder to get an insertcommand based on the 
selectcommand.
Then I attach the datatablemappings.
And finally I use the update method of the dataadapter. Then I get a syntax 
error in my INSERT statement. Now I found out what the problem was: some 
fields contained a non-alphanumeric value. When I removed these, the problem 
was fixed. But how would one fix this without removing it and still use the 
commandbuilder or sortlike solution? The commandbuilder doesn't include any 
"[" or "]" if the table field name contains any special characters(space, 
slash, etc). Is there anything that can make the builder enclose the field 
names in these brackets?

Kind regards,
Nico.
date: Thu, 17 Apr 2008 15:31:05 +0200   author:   Nico

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us