Re: How do I get the GUID value of a Record that I just Inserted ?
- From: "Mark Moss" <markmoss@xxxxxxxxxxxx>
- Date: Tue, 21 Feb 2006 09:50:12 -0700
Vitali
Could you please give me an example on how this would be done, as I
have not been able to find any.
Thanks
Mark Moss
"Vitali Kalinin" <vitkalinin@xxxxxxxxx> wrote in message
news:43fb4084@xxxxxxxxxxxxxxxxxxxxxxxxx
GUID
"Mark Moss" <markmoss@xxxxxxxxxxxx> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:43fb3e00$1@xxxxxxxxxxxxxxxxxxxxxxxxx
How do I get the GUID value of a Record that I just Inserted ?
DM.DataModule1.ADOCommand1.CommandText := 'INSERT INTO Customer ' +
'( CustomerID, CardNumber, NameLast, DateTimeCreated,
DateTimeUpdated )' +
' VALUES ('
+
'NEWID()'
+ ',' +
chr(39) + Hold_Customer_CardNumber +
chr(39) + ',' +
chr(39) + Hold_Customer_NameLast +
chr(39) + ',' +
'GETDATE()'
+ ',' +
'GETDATE()'
+
' )';
DM.DataModule1.ADOCommand1.Execute(Records_Affected, EmptyParam);
It Inserts the record correctly, but I do not know how to get the
Value for further ProcesssingHow about generate this GUID on a client side so that you will know it
Mark Moss
before insert?
.
- Follow-Ups:
- Re: How do I get the GUID value of a Record that I just Inserted ?
- From: Vitali Kalinin
- Re: How do I get the GUID value of a Record that I just Inserted ?
- References:
- How do I get the GUID value of a Record that I just Inserted ?
- From: Mark Moss
- Re: How do I get the GUID value of a Record that I just Inserted ?
- From: Vitali Kalinin
- How do I get the GUID value of a Record that I just Inserted ?
- Prev by Date: Re: How do I get the GUID value of a Record that I just Inserted ?
- Next by Date: EOleexception with message overflow
- Previous by thread: Re: How do I get the GUID value of a Record that I just Inserted ?
- Next by thread: Re: How do I get the GUID value of a Record that I just Inserted ?
- Index(es):