ADO / SQLDataAdapter Quick Question

  • Thread starter Thread starter Doug
  • Start date Start date
D

Doug

Hi,

I have a quick question -

I have a table where the primary key is an autogenerated GUID via SQL Server
2k. The table has just 2 fields, the PK and the ChangeDate. When I do an
insert into the table w/ the date, the PK is generated, but I need to have
that PK value returned to the application for use elsewhere. Is there a way
to have this value returned to my application w/o having a routine that goes
back and gets it? I thought there was something, but I can't remember it.
Thanks.

Doug
 
* "Doug said:
I have a table where the primary key is an autogenerated GUID via SQL Server
2k. The table has just 2 fields, the PK and the ChangeDate. When I do an
insert into the table w/ the date, the PK is generated, but I need to have
that PK value returned to the application for use elsewhere. Is there a way
to have this value returned to my application w/o having a routine that goes
back and gets it?

.... I suggest to ask this question in a more appropriate group:

<URL:
Web interface:

<URL:http://msdn.microsoft.com/newsgroups/?dg=microsoft.public.dotnet.framework.adonet>
 
Back
Top