StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Role Based Security
»
RBS Logging Mechanism
RBS Logging Mechanism
Post Reply
Like
3
RBS Logging Mechanism
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
lastcanary
lastcanary
posted 13 Years Ago
ANSWER
Topic Details
Share Topic
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?
Reply
Like
3
Replies
Trent Taylor
Trent Taylor
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
On the client side?
Reply
Like
3
hector
hector
posted 13 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 52,
Visits: 559
Yes.
Reply
Like
3
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
RBS Logging Mechanism
lastcanary
-
13 Years Ago
What command are you trying to execute? I see that you are setting...
Trent L. Taylor
-
13 Years Ago
Hi Trent, Let me clarify our problem : All we want is simply pass...
hector
-
13 Years Ago
We took a different approach in our medical application on several...
Trent L. Taylor
-
13 Years Ago
Hi Trent, Thanks a lot for your detailed explanation. we tried to...
hector
-
13 Years Ago
On the client side?
Trent L. Taylor
-
13 Years Ago
Yes.
hector
-
13 Years Ago
No reply?
lastcanary
-
13 Years Ago
Post Reply
Like
3
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search