IDENITY Result
Posted: Tue 27 Nov 2012 19:42
I cannot find an example of getting an Identity_Result from a TMSQuery. I see there is a Option.QueryIdentity. But I don't see a property like qryTest.Identity that I can check after the query runs to get the ID.
I have a Table TESTTBL that has (ID, FullName, Age) with ID being the Identity field. So I am doing an "Insert TESTTBL values(:FullName, :Age)" which works, but I am not getting the ID back. I saw some other topics, but no specific example. I also searched the demo, but did not find anything there (other then a Stored Procedure with a return value). Nor in the help.
I have a Table TESTTBL that has (ID, FullName, Age) with ID being the Identity field. So I am doing an "Insert TESTTBL values(:FullName, :Age)" which works, but I am not getting the ID back. I saw some other topics, but no specific example. I also searched the demo, but did not find anything there (other then a Stored Procedure with a return value). Nor in the help.