Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...not saving the changesnot saving the changes
Previous
 
Next
New Post
9/23/2013 10:46 AM
 
I upgraded the site to DNN 7.1.1 and run your SQL script. Still I am getting errors in the SQL window. I did run successfully until this statement. I am running them one by one to the order you gave me.

I am getting this message.
" There is an error in your query! "

Please can you tell me if there is any issue in the script?

2)
CREATE FUNCTION {databaseOwner}[{objectQualifier}FitsExtendedPropertyPermission](
@viewingUserId int,
@viewedUserID int,
@extendedPermissions nvarchar(2000)) RETURNS bit
AS
BEGIN
DECLARE @rolesStr nVarChar(2000) = ''
DECLARE @reltnStr nVarChar(2000) = ''
DECLARE @gStartPos int
DECLARE @rStartPos int
DECLARE @recCount int = 0
DECLARE @SQL int
If (@viewedUserID > 0 and Len(IsNull(@extendedPermissions,'')) > 2) BEGIN
SET @gStartPos = CHARINDEX('G:',@extendedPermissions) + 2
SET @rStartPos = CHARINDEX('R:',@extendedPermissions) + 2
if @gStartPos > @rStartPos BEGIN
SET @rolesStr = SUBSTRING(@extendedPermissions, @gStartPos, Len(@extendedPermissions) - @gStartPos)
if @rStartPos > 0 SET @reltnStr = SUBSTRING(@extendedPermissions, @rStartPos, @gStartPos - @rStartPos - 1)
END
If @gStartPos < @rStartPos BEGIN
SET @reltnStr = SUBSTRING(@extendedPermissions, @rStartPos, Len(@extendedPermissions) - @rStartPos)
if @gStartPos > 0 SET @rolesStr = SUBSTRING(@extendedPermissions, @gStartPos, @rStartPos - @gStartPos - 1)
END
If @rolesStr <> '' BEGIN
SET @rolesStr = ',' + SUBSTRING(@rolesStr,1, Len(@rolesStr) - CASE WHEN RIGHT(@RolesStr,1) = ';' THEN 1 ELSE 0 END)
SELECT @recCount = COUNT(1) FROM {databaseOwner}[{objectQualifier}UserRoles] WHERE UserID = @viewingUserId AND @rolesStr LIKE '%,' + Convert(nvarchar(10),RoleId) + ',%'
END
If @recCount = 0 AND @reltnStr <> '' BEGIN
SET @reltnStr = ',' + SUBSTRING(@reltnStr,1, Len(@reltnStr) - CASE WHEN RIGHT(@reltnStr,1) = ';' THEN 1 ELSE 0 END)
SELECT @recCount = COUNT(1) FROM {databaseOwner}[{objectQualifier}vw_RelatedUsers] WHERE UserID = @viewingUserId AND relatedUserID = @viewedUserId AND @reltnStr LIKE '%,' + Convert(nvarchar(10),RelationShipID) + ',%' AND Status = 2
END
END
RETURN CASE WHEN IsNull(@RecCount, 0) > 0 THEN 1 ELSE 0 END
END






3) CREATE FUNCTION {databaseOwner}[{objectQualifier}FilePath]
(
@StrMayContainFileId nVarChar(255)
)
RETURNS nVarChar(500)
AS
BEGIN
DECLARE @Path AS nVarChar(500);

IF ISNUll(@StrMayContainFileId,'') = ''
SET @Path = ''
ELSE IF Lower(@StrMayContainFileId) LIKE 'fileid=%'
SELECT @Path = IsNull(Folder, '') + FileName FROM {databaseOwner}[{objectQualifier}vw_Files]
WHERE fileid = CAST(SUBSTRING(@StrMayContainFileId, 8, 10) AS int)
ELSE
SET @Path = @StrMayContainFileId
RETURN @Path -- never Null!
END
 
New Post
9/23/2013 11:54 AM
 
Thank you for your reply and advises Sebastian.

I upgraded the site to DNN 7.1.1 and run your full SQL script once. It executed successfully.The timeout/clearing the cache within a few seconds issue is still there. Still not sure what is the problem.

Thanks !

 
New Post
9/23/2013 1:08 PM
 
please clear eventlog and check for events. does the application get restarted frequently?

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/25/2013 11:58 AM
 
Hello Sebastian.

I has a close look at the event viewer. Yes. I can see there are too many purple squares ("General Admin Operation") in the event log list. Log Type is "Application Started ". These messages are in less than a minute. some messages have only a few seconds difference. No any other details under this log. Is this normal?

Is this happening with something with host scheduler? As you stated above, the application restating could be the issue. Please help. Please advise.

Thank You!
 
New Post
9/25/2013 12:58 PM
 
And here is a screenshot
http://awesomescreenshot.com/0261r73p3d
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...not saving the changesnot saving the changes


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out