Comments on: MS SQL – Last Inserted ID http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/ Weblog von Hagen Langbartels Tue, 05 May 2009 13:15:00 +0000 hourly 1 https://wordpress.org/?v=5.3.2 By: Hinek http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/comment-page-1/#comment-216767 Tue, 05 May 2009 13:15:00 +0000 http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/#comment-216767 I think you should use
SELECT scope_identity()

]]>
By: Lari http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/comment-page-1/#comment-179146 Wed, 11 Jun 2008 13:10:32 +0000 http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/#comment-179146 As you might have paid attention to, that ‘exec’ allows sql injections.

]]>
By: Vlad Pop http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/comment-page-1/#comment-117801 Mon, 16 Jul 2007 11:02:15 +0000 http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/#comment-117801

That would be mysql_insert_id(). There’s no mssql_insert_id().

]]>
By: mukesh http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/comment-page-1/#comment-48068 Fri, 19 Jan 2007 09:42:21 +0000 http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/#comment-48068 mssql insert_id()

]]>
By: Harry http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/comment-page-1/#comment-17345 Tue, 28 Mar 2006 14:10:35 +0000 http://codefreak.de/archiv/2004/12/16/ms-sql-last-inserted-id/#comment-17345 Hi

Genau das was ich gesucht habe!

Vielen Dank!

Harry

]]>