I'm trying to port from D7 to lazarus an application.
this application is loggin on a server (not editable, as is in production) and as 1st operation it has to fire the "application user role".
In laz with native db libraries MSSQLConn I'm experiencing what follows.
AUR MUST be execute off from a transaction. But in this case the error is:
Generic SQL error. Detail: Transaction not set
oh gosh, then I set transaction and error changes to:
MsSql : Error 20018 : General SQL Server error: Check messages from the SQL Server
The procedure 'sys.sp_setapprole' cannot be executed within a transaction.
how hell I can then fire the AUR without transaction if it NEED transaction BUT does not work if setted ???
note: tried with zeos lib, it allows to fire AUR with no transaction, but it gives headhaces l8er when accessing data....Sounds like a infinite loop...
any suggestion some1 ?