Thank you, Alan. I did find this syntax in the MSDN but I can't figure out how to apply it to a SQLEXEC() funtion. I will try different variations.
>Do a SELECT @@IDENTITY statement to get last PK inserted into your SQL table.
>
>>How do I get the PK value assigned by SQL Server right after adding a new record to a table? I tried to search UT but the search area is down. Thus, I am sorry for a very basic question, I am sure it was asked before.
>>
>>Thank you in advance.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham