01.
DROP
PROCEDURE
IF EXISTS sp_DBR_automatic_parameters
02.
$$
03.
CREATE
PROCEDURE
`sp_DBR_automatic_parameters`(
04.
inLogin
varchar
(30),
05.
inIPAddress
varchar
(30),
06.
inLocale
varchar
(30),
07.
inUseragent
varchar
(500),
08.
inExportFormat
varchar
(30),
09.
inAutoexecute
varchar
(30),
10.
inHTTP_ACCEPT_LANGUAGE
varchar
(100),
11.
inHTTP_REFERER
varchar
(400),
12.
inAutoReportURL
varchar
(400),
13.
inAutoTheme
varchar
(30),
14.
inImportFilename
varchar
(30)
15.
)
16.
BEGIN
17.
18.
select
'inLogin'
, inLogin
19.
union
select
'inIPAddress'
, inIPAddress
20.
union
select
'inLocale
', inLocale -- Users locale when report is run (en_US, de_DE etc.)
21.
union select '
inUseragent
', inUseragent -- Browsers user agent
22.
union select '
inExportFormat
', inExportFormat -- URL'
s export parameter value
23.
union
select
'inAutoexecute'
, inAutoexecute
24.
union
select
'inHTTP_ACCEPT_LANGUAGE'
, inHTTP_ACCEPT_LANGUAGE
25.
union
select
'inHTTP_REFERER
', inHTTP_REFERER -- HTTP_REFERER, IP address of linked web page
26.
union select '
inAutoReportURL
', inAutoReportURL -- Report'
s execution URL
27.
union
select
'inAutoTheme'
, inAutoTheme
28.
union
select
'inImportFilename', inImportFilename
29.
;
30.
END
31.
$$