home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
moodle.waes.ac.uk
/
moodle.waes.ac.uk.zip
/
moodle.waes.ac.uk
/
TMG
/
SP1-TMG-KB981324-AMD64-ENU.msp
/
PCW_CAB_SHFx2
/
F2143_msfpcui.dll
/
BINARY
/
25116
< prev
next >
Wrap
Text File
|
2010-06-15
|
871b
|
27 lines
CREATE PROCEDURE [ISA_spCacheSummary]
AS
BEGIN
SET NOCOUNT ON;
IF OBJECT_ID ('tblCacheSummary', 'u') IS NOT NULL
DROP TABLE [tblCacheSummary]
DECLARE @FromDate datetime
SET @FromDate = (SELECT [FromDate] FROM [tblSummaryParams])
IF OBJECT_ID ('WEB_LOGS', 'view') IS NOT NULL
BEGIN
SELECT [objectsource] AS Response
,COUNT(*) as Requests
,Sum([bytesrecvd]) as TotalBytes
,@FromDate AS Date
INTO [tblCacheSummary]
FROM WEB_LOGS
WHERE
([Action] != 8) AND
([resultcode] != 13301) AND
([Action] != 10) AND
([objectsource] != 6) AND
([InternalServiceInfo] & 2) = 0
GROUP BY [objectsource]
END
INSERT INTO [tblSummaryTables] ([TableName]) VALUES ('tblCacheSummary')
END