ReportPortal
ReportPortal
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 ReportPortal General Forum
 Report Portal General Issues
 Report Usage reports errors

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Message:

* HTML is ON
* Forum Code is OFF
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Vincent Posted - 09/21/2006 : 07:50:09
Hi,
When trying to run any of the report usage report, I am getting the below error.

Invalid object name 'UsageLog'.; SQL: SELECT ISNULL(u.FirstName + ' ' + u.LastName, 'Removed User' + CONVERT(varchar, l.ReportId)) AS UserName, COUNT(*) AS RecordCount FROM UsageLog l LEFT OUTER JOIN AppUser u ON l.UserId = u.UserId GROUP BY ISNULL(u.FirstName + ' ' + u.LastName, 'Removed User' + CONVERT(varchar, l.ReportId)) ORDER BY COUNT(*) DESC
SQL: SELECT ISNULL(u.FirstName + ' ' + u.LastName, 'Removed User' + CONVERT(varchar, l.ReportId)) AS UserName, COUNT(*) AS RecordCount FROM UsageLog l LEFT OUTER JOIN AppUser u ON l.UserId = u.UserId GROUP BY ISNULL(u.FirstName + ' ' + u.LastName, 'Removed User' + CONVERT(varchar, l.ReportId)) ORDER BY COUNT(*) DESC
1   L A T E S T    R E P L I E S    (Newest First)
admin Posted - 09/21/2006 : 22:30:46
“UsageLog” table is created during the installation process (tables.sql). Is it possible that someone might have dropped this table from your database? You can recreate it by running this statement in query analyzer.

CREATE TABLE [dbo].[UsageLog] (
[UsageLogId] [int] IDENTITY (1, 1) NOT NULL ,
[ReportId] [int] NOT NULL ,
[UserId] [int] NOT NULL ,
[ActionId] [tinyint] NOT NULL ,
[LogDate] [datetime] NOT NULL
) ON [PRIMARY]
go

CREATE TABLE [dbo].[UsageLogAction] (
[ActionId] [tinyint] NOT NULL ,
[ActionName] [varchar] (50) NULL
) ON [PRIMARY]

go

INSERT INTO UsageLogAction VALUES (1, 'Create')
INSERT INTO UsageLogAction VALUES (2, 'Edit')
INSERT INTO UsageLogAction VALUES (3, 'Read')
INSERT INTO UsageLogAction VALUES (4, 'Snap')
INSERT INTO UsageLogAction VALUES (5, 'Delete')
INSERT INTO UsageLogAction VALUES (6, 'Security')
INSERT INTO UsageLogAction VALUES (7, 'Approve')

ReportPortal © 2000-2002 Snitz Communications Go To Top Of Page