Thursday, March 01, 2012 3:56 PM
in PDO_SQLDRV i'd like to retrieve the Id session number of a query when I use $pdo->query($StringQuery)
Thanks for your help.
Thursday, March 01, 2012 4:58 PMModerator
I'm not sure I understand your question. Are you looking for the PDO::lastInsertId method? If not, can you elaborate on what you are trying to do?
This posting is provided "AS IS" with no warranties, and confers no rights. http://blogs.msdn.com/brian_swan
Tuesday, March 06, 2012 3:11 PM
If you want your SQL Server session ID (from your connection) you can run this query from your PDO connection: