This project is read-only.

SQL Azure

Sep 8, 2012 at 6:50 AM

I was not able to run the SQL scripts on SQL Azure due to limitations with the Azure platform. Is it possible to use this forum software with a SQL Azure backend? 

Sep 11, 2012 at 8:48 AM

Hi Alex,

Sorry for the delay!

The problem with SQL Azure are the ASP.NET Membership create scripts (included in the release).

It was reported previously (included solution), but we didn't modified the db scripts in the v8.5...

The solution is to remove the WITH (nolock)  from the select statements, you can do it manually (we will not change the db scripts until next version).


Kind Regards,


Sep 11, 2012 at 8:55 AM
Edited Sep 11, 2012 at 8:55 AM

UPDATE: The solution is to edit the sql scripts, specifically the "aspnet_Membership_GetNumberOfUsersOnline" procedure:

CREATE PROCEDURE [dbo].[aspnet_Membership_GetNumberOfUsersOnline]

@ApplicationName nvarchar(256),
@MinutesSinceLastInActive int, 
DECLARE @DateActive datetime 
ELECT @DateActive = DATEADD(minute, -(@MinutesSinceLastInActive), @CurrentTimeUtc)
DECLARE @NumOnline int
SELECT @NumOnline = COUNT(*)

FROM dbo.aspnet_Users u WITH (NOLOCK),

.aspnet_Applications a WITH (NOLOCK),

.aspnet_Membership m WITH (NOLOCK)

WHERE u.ApplicationId = a.ApplicationId
AND LastActivityDate> @DateActive
a.LoweredApplicationName = LOWER(@ApplicationName)
u.UserId = m.UserId



Oct 24, 2012 at 3:51 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.