Retrieve GUID identity MS SQL with PHP

Wappler Version : 3.5.4
Operating System : Windows 10
Server Model: PHP
Database Type: MS SQL
Hosting Type: local

What do you think should happen?

Insert should return the GUID as identity.

What actually happens?

Nothing is returned
image

This was an issue from a while ago, I’ve worked around it but would like to resolve it. The issue is the same whether using MS GUID or creating UUID as MS SQL won’t allow these to be listed as identity columns…

I recently saw a solution for Node JS (and it looks like it works in ASP) so wondered if it were possible to solve for PHP?

Thanks!

We depend on 3rd party drivers for database connections. With PHP we use PDO and its method to get the identity (https://www.php.net/manual/en/pdo.lastinsertid.php).