My application currently uses the following to set a variable for use by a MS SQL Sever 2014 database trigger. This does not work in PowerServer. Is there a workaround of some variety?
ls_SQL = "Declare @TheUser VARCHAR(128) SET @TheUser='" + as_userid + "'" &
+ " Declare @BinUser varbinary(128) SET @BinUser=CONVERT(varbinary(128), @TheUser)" &
+ " SET CONTEXT_INFO @BinUser"
EXECUTE IMMEDIATE :ls_SQL USING SQLCA;
i *think* having it open (not committed) forces the IIS server to not share that pooled database connection.
It would be a bit of PITA to ensure that is being called prior to your database processing.
also, this isn't specific to powerserver - so a search in stack exchange for pooled transactions and context_info might yield more/better info
if you can get it to work with pooled database connections, post back on here to let us know it is possible