Forums

Extended Analytics in diff. DB.

This question is answered

I've followed the instructions here: http://telligent.com/support/analytics/w/documentation/configure-the-web-analytics-task-to-write-data-to-a-separate-database.aspx

And now have my Extended Analytics data being logged to the new database.....however, the default TaskStrings.config pulls in cs_Users which does not get created by the ExtendedAnalytics.sql script and is not populated by the CommunityServer.ExtendedAnalytics.dll module.  One solution is to update the TaskString to either remove the outer join referencing the table or to rework it such that it pulls the data from two DBs and merges it on the Reporting side.

Layne

 

-----Error Message in log file-----

Task: WebAnalyticsTask @ 2010-01-13 10:23:56.867327 : Task Started.
    2010-01-13 10:23:56.867327 - WebAnalyticsTask - TaskBase.Execute() - Begin
        2010-01-13 10:56.867327 - WebAnalyticsTask - ReadConfig(node) - Begin
        2010-01-13 10:56.882953 - WebAnalyticsTask - ReadConfig(node) - End
        --- ---
        TRANSFER FROM(DB): CommunityWebAnalytics - TO(DB): Analytics_SIT
        --- ---
        Error retrieving Web Analytics data from Source Database using connection string server=[[omitted]];Trusted_Connection=yes;database=CommunityWebAnalytics;Connection Timeout=300 @ 2010-01-13 10:56.914204
        Telligent.Tasks.Service.exe Error: 0 : Exception: Invalid object name 'cs_Users'.
        Task: WebAnalyticsTask @ 2010-01-13 10:23:56.914204 : Exited on error.
    2010-01-13 10:23:56.914204 - WebAnalyticsTask - TaskBase.Execute() - End

 

----TaskString----

 <Task name="WebAnalyticsTask" ImportIdField="">
  <Queries>
   <add Query="
SELECT top @MaxItemCount f.UserId, f.SessionId, ISNULL(u.UserId, 0) AS [CsUserId], f.RequestedUrl, f.ReferringUrl, f.IPAddress,
f.UserAgent, f.IfModifiedSince, f.PageTitle, f.RequestDt, f.ApplicationType, f.GroupId, f.SectionId, f.ThreadId, f.WikiId, f.PageId, f.PostId
FROM cs_WebAnalytics f LEFT OUTER JOIN cs_Users u ON f.UserId = u.MembershipId WHERE RequestDt > @ImportDt ORDER BY RequestDt ASC" />
  </Queries>
  <ConnectionStringNames>

   <add Source="CommunityWebAnalytics" Destination="[[omitted]]" SiteSchema="[[omitted]]" />
  </ConnectionStringNames>
 </Task>

 

Verified Answer
  • Hey Layne,

    Is this still causing an issue for you, or were you able to resolve it?

    There is definitely a flaw in the logic here. Another user brought this up to me just a couple days ago. They were able to resolve their issue by using a 3-part table reference to cs_Users [Database].[Schema].[Table] since both databases were on the same server.

    We are working on a permanent solution to this issue.

All Replies
  • Hey Layne,

    Is this still causing an issue for you, or were you able to resolve it?

    There is definitely a flaw in the logic here. Another user brought this up to me just a couple days ago. They were able to resolve their issue by using a 3-part table reference to cs_Users [Database].[Schema].[Table] since both databases were on the same server.

    We are working on a permanent solution to this issue.

  • I added the database.schema.table reference since it was just a different database on the same server, but is there any update on the perm. solution?  I'm getting closer to a scenario where I'll need the final resolution to this.

  • Yes Layne, the next version of Analytics will include a new task that removes the need for Web Analytics to join with the Community database.

    You will be able to pull Web Analytics views from a separate server, using a separate login.