Thanks for the reply Tony. I'm looking to mimic how Scope_Identity determines the last identity value used in a table. By having the SELECT statement in the ON INSERT trigger, once I figure out how to read the output value, I'll be able to discern the last GUID used in a particular table. This will allow me to modify existing tables from Identity PKs to GUID PKs with less overall rewrite to stored procedures and outside inserts into the table. Because I was using the Identity, I have many cases in client-side code where I'm inserting into a table without referencing the Identity field. If I don't have the GUID automatically generated, I will have to go back to every insert I have anywhere into the table and add the field.
The reason I'm changing the table PKs to GUIDs is because the database will need to be synchronized between multiple facilities and from my understanding, I'll lose records with duplicate PKs (as would occur if both master and remote databases incremented the identity between syncs) from the remote databases. If anyone knows of a way around using a GUID and continuing the use of the "autonumber" identity, that would be even more valuable.
Thanks again for the reply, and thanks in advance for more assistance on this. I really appreciate it.
Tom