--
You received this message because you are subscribed to the Google Groups "tedious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-tedious...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Can you not use select scope_identity() (make sure you're using the same connection to the db that did the insert) ?
- cj
On Friday, July 26, 2013, Hugo Magalhaes wrote:
Hi,I'm trying to add a new record to a table and I need to get the Identity from the added row.My query is: INSERT INTO MyTable (Name, Description) OUTPUT INSERTED.ID VALUES ('Name', 'Description')This works in SQL Server Management Studio but I don't know how to get the ID in Tedious.
Can you please help me?Thanks.Best regards,Hugo--
You received this message because you are subscribed to the Google Groups "tedious" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-tedious+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to node-tedious...@googlegroups.com.