Views [dbo].[LSYFileServerStatsPSHourView]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Created11:10:05 AM Wednesday, March 07, 2007
Last Modified5:37:11 PM Monday, May 04, 2009
Columns
Name
server_addr
probe_addr
intervaldatetime
intervalduration
probeindex
fileserverkeyid
pktstoclient
bytestoclient
pktstoserver
bytestoserver
readsvccount
readsvcsum
readsvcsos
readbytes
writesvccount
writesvcsum
writesvcsos
writebytes
othersvccount
othersvcsum
othersvcsos
siocount
siosum
siosos
linkerrcount
fserrcount
fileopen
fileclose
filesearch
IntervalTime
Permissions
TypeActionOwning Principal
GrantSelectuniadmin
SQL Script
CREATE VIEW LSYFileServerStatsPSHourView AS
SELECT LSYFileServerStats.*, IntervalTime=DATEADD(hour, DATEDIFF(hour,0,getdate()), 0) FROM LSYFileServerStats WHERE datepart(weekday, IntervalDateTime) BETWEEN 2 AND 6 AND datepart(hour, IntervalDateTime) BETWEEN 8 AND 18
GO
GRANT SELECT ON  [dbo].[LSYFileServerStatsPSHourView] TO [uniadmin]
GO
Uses