Solved
Using OUTPUT in SQL Command
Hello,
I wanted to use the "OUTPUT" clause in an SQL command to get the latest inserted row.
However I am getting this error:
Execute Update failed: com.microsoft.sqlserver.jdbc.SQLServerException: A result set was generated for update.
Now, the SQL that i am using does work in SSMS. Here is the structure:
INSERT INTO Table
(value1, value2)
OUTPUT Inserted.uid
values(1,2)
Any ideas?
I would if possible like to avoid using stored procedures.
Thanks,


