PC Review


Reply
Thread Tools Rate Thread

CommandBuilder and Identity Field

 
 
=?Utf-8?B?RGFuaWVsZSBQaW5haQ==?=
Guest
Posts: n/a
 
      27th Sep 2006
Hi,
I used a commandbuilder for my DataAdapter.
i have a dataadapter "Pather" and a dataadapter "Sons"

in "Pather" table i have and identity field that i use in "Sons" table
to join them.

How can i know with identity number i have for my new "Pather" row ?
How can set my "sons" rows with this identity value ?

I hope my bad english is little clean.
Thank's a lots
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGFuaWVsZSBQaW5haQ==?=
Guest
Posts: n/a
 
      27th Sep 2006
I had solved it.

In the field "Id" in my datarow after dataadapter.Update i found the right
value like in the database table.

I hope this help anyone.
Bye


"Daniele Pinai" wrote:

> Hi,
> I used a commandbuilder for my DataAdapter.
> i have a dataadapter "Pather" and a dataadapter "Sons"
>
> in "Pather" table i have and identity field that i use in "Sons" table
> to join them.
>
> How can i know with identity number i have for my new "Pather" row ?
> How can set my "sons" rows with this identity value ?
>
> I hope my bad english is little clean.
> Thank's a lots

 
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
Auto Increment Field or Identity Field In MS SQL Server akhil Webmaster / Programming 0 5th Mar 2011 08:52 AM
Have a change between v 1.1 to 2.0 about Return identity with CommandBuilder mtczx232@yahoo.com Microsoft ADO .NET 0 8th Jan 2007 08:26 AM
Inserting identity columns with CommandBuilder generated commands? Carl Mercier Microsoft ADO .NET 9 23rd Nov 2003 11:46 PM
Is it possible to work with commandbuilder and with a Autonumber Field Joao Santa Barbara Microsoft ADO .NET 2 26th Aug 2003 07:18 PM
Is it possible to work with commandbuilder and with a Autonumber Field Joao Santa Barbara Microsoft Dot NET 2 26th Aug 2003 07:18 PM


Features
 

Advertising
 

Newsgroups
 


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