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: 5 Jun 2006 13:39:24 -0700,    group: microsoft.public.dotnet.datatools        back       


.net 2005 Command Builder not generating UpdateCommand for TableAdapter   
I'm having a hard time figuring out why I can't generate an Insert,
Delete or Update command for a tableadapter (attached to the
datatable).

The table is located in an SQL 2000 database.  In .net 2003, I had no
problem with the dataadapter wizard generating the command statements.

I click the "Advanced Options" button in the Command Builder.  I ensure
the "Generate Insert, Update, and Delete statements..." is checked.
I've tried checking and leaving unchecked the optimistic concurrency
and refresh the datatable boxes, but neither allows this to succeed.

In the wizard, my GenerateDBDirectMethods checkbox is grayed out, but I
assume this is only applicable for SQL 2005 databases, and not SQL
2000.

On completion of the wizard,  I get the following results (with no
errors):

Generated SELECT Statement
Generated table mappings
Generated Fill method
Generated Get method

It says nothing about generating an UPDATE, INSERT or DELETE statement,
neither for success or failure.  In browsing the properties of the
tableadapter, the "command" properties are left blank.  Since I checked
the box to generate these commands, I'd expect at least an error if
they couldn't be generated for some reason.

I've ensured that there is a clearly identifiable primary key within
the database, and the datatable is reflecting the key properly.

The build version I'm using is 8.0.50727.42

Thanks,
Marc
date: 5 Jun 2006 13:39:24 -0700   author:   Marc Michaels

Google
 
Web ureader.com


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