PC Review


Reply
Thread Tools Rate Thread

CommandBuilder key fields

 
 
Javier Ros
Guest
Posts: n/a
 
      17th Jul 2003
Hi guys,
Iīm working with AS/400 DB2 Database and it donīt have key fields
information (donīt have SYSTABLES, SYSINDEX, ...)

Can I set the key fields in CommandBuilder Object?

thanks in advance.

..Javier Ros Moreno.


 
Reply With Quote
 
 
 
 
David Sceppa
Guest
Posts: n/a
 
      17th Jul 2003
Javier,

The CommandBuilder relies on the back-end to provide
meta-data about the resultset returned by the DataAdapter's
SelectCommand in order to generate updating logic. If the
provider you're working with does not supply this meta-data, you
won't be able to rely on the CommandBuilder to generate your
updating logic.

If you know the schema for your queries at design-time,
you'd get better performance by supplying your own updating logic
in code. The Visual Studio .NET DataAdapter Configuration Wizard
generates updating logic this way, but it relies on similar
meta-data to generate that logic.

The CD for "Microsoft ADO.NET" from Microsoft Press includes
a fairly simple stand-alone tool to generate updating logic
against various .NET Data Providers in VB.NET and C#. If the
query you supply does not return enough schema information to
generate updating logic, the tool prompts you for that schema
information. This type of tool (and there may be others out
there) may prove helpful.

David Sceppa
Microsoft
This posting is provided "AS IS" with no warranties,
and confers no rights. You assume all risk for your use.
Đ 2003 Microsoft Corporation. All rights reserved.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Done with CommandBuilder tascienu@ecoaches.com Microsoft ADO .NET 5 12th Sep 2005 07:41 AM
CommandBuilder Antonio Prieto Microsoft ADO .NET 5 23rd Nov 2004 10:09 AM
CommandBuilder.Dispose - should I use it? Ed Microsoft VB .NET 3 16th Jun 2004 07:12 AM
CommandBuilder commands Konrad Microsoft ADO .NET 4 18th Sep 2003 05:09 AM
CommandBuilder Problem Joao Santa Barbara Microsoft ADO .NET 2 26th Aug 2003 03:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:04 PM.