Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stored procedure for edit log
Message
From
14/11/2008 03:14:41
 
 
To
13/11/2008 14:52:50
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01361756
Message ID:
01361864
Views:
15
>I have pondered this question before but never found a satisfactory answer. Perhaps someone can help now. I and reworking an old app to make it available on the web via .NET. The DBC has a stored procedure that logs before and after values when any edits are made to the tables. The SP is triggered via triggers in the tables so it is all automatic. In addition to the edit info the log keeps the date and time and the username of the person making the edit. Username is provided by a public variable initiated at logon. In the web app the username will be stored in a session variable in a similar fashion. My question is . . . What modifications will I need to make to enable the same logging from the web app? IE Will I have to drop the triggers in order to pass the username explicitly? How can I pass the username to the SP if the triggers are still in place? etc.
>
>Any advice/insights will be appreciated.
>Thanks

Hi,

The simplest approach is to set the same public variable that the SP is already expecting. If the connection is always obtained via the same method then this should be a trivial change.

I think a similar issue came up a while back - maybe Naomi can identify the thread?
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform