History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SQL-25
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Bob Swift
Reporter: Clynt Heikes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Confluence SQL Plugin

Log SQL macro use

Created: 11/Oct/07 02:19 PM   Updated: 25/Oct/07 12:00 PM
Component/s: SQL macro, sql-query macro
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Labels:


 Description  « Hide
I think it would useful to have a log that shows which specific confluence user is running the sql macro, what page the sql was located on, and when it was executed. I previously brought the idea up informally, and the idea was to monitor use in the confluence log4j log as an info message.

Thanks for your time

Clynt



 All   Comments   Work Log   Change History   FishEye   Crucible   Related Builds      Sort Order: Ascending order - Click to sort in descending order
Clynt Heikes - 25/Oct/07 11:52 AM - edited

Example:

{replace-and-render}
{replace-item:%Query%}select * from confluence.Confluence.Bandana where BANDANACONTEXT = '\$value'{replace-item}
{replace-item:%fullName%}{report-info:global:current user}{replace-item}
{replace-body}
{run:replace=value::Bandana Context|exportFile=^%fullName%.html|titleExport=Export File: %fullName%.html}
{sql:datasource=confluence|output=wiki}
Execute dba.dbo.spc_AuditMacroUse '%fullName%,'SQL Macro Logging example', "%Query%"
{sql}
{sql:dataSource=confluence|output=wiki}
%Query%
{sql}
{run}
{replace-body}{replace-and-render}

It would be a great day to ditch this mess for logging purposes.