RBS Logging Mechanism


Author
Message
lastcanary
lastcanary
StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)StrataFrame User (157 reputation)
Group: StrataFrame Users
Posts: 81, Visits: 270
Hello,

We are trying to implement a logging mechanism over the Strataframe RBS. We have written triggers on the RBS tables and in order to pass application values (like the username) to the triggers we are setting the context_info variable of StrataFrame.

In program.cs:

sSql = "declare @context_info varbinary(50);set @context_info = cast('" + MicroFour.StrataFrame.Security.SecurityBasics.CurrentUser.UserPK.ToString();

sSql +=
"@" + sFullIP + "' as varbinary(50));set context_info @context_info;";

DataLayer.DataSources["MySecurityKey"].ExecuteNonQuery(sSql);

We used SQL Server profiler and saw that context_info is properly set with this command.

When the program loads and I click on the security editor a number of SQL statements are executes with sp_reset and the context_info variable is also cleared.

We would like to find a method so that context_info is not cleared and our triggers use this information for logging.

Could you please help us?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
lastcanary - 12 Years Ago
Trent L. Taylor - 12 Years Ago
hector - 12 Years Ago
Trent L. Taylor - 12 Years Ago
hector - 12 Years Ago
                         On the client side?
Trent L. Taylor - 12 Years Ago
                             Yes.
hector - 12 Years Ago
     No reply?
lastcanary - 12 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search