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...Administration ...Administration ...Journal Module  Cannot resolve the collation conflict between "Icelandic_CI_AS" and "Danish_NorwegiaJournal Module Cannot resolve the collation conflict between "Icelandic_CI_AS" and "Danish_Norwegia
Previous
 
Next
New Post
7/20/2013 6:51 AM
 
did you change database default collation?
what is collation of temp database, the call might create temp objects w/o specifying proper collation.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/20/2013 7:28 AM
 

I just found out missing statements in a few functions. please run the following SQL code from Host > SQL with "run as script" checked:

 

ALTER FUNCTION {databaseOwner}[{objectQualifier}Journal_User_Permissions]
(
 @PortalId int,
 @UserId int,
 @RegisteredRoleId int
)
RETURNS
@tmp TABLE (seckey nvarchar(200) COLLATE database_default)

AS
BEGIN
IF @UserId > 0
  BEGIN
   INSERT INTO @tmp (seckey) VALUES ('U' + Cast(@UserId as nvarchar(200)))
   INSERT INTO @tmp (seckey) VALUES ('P' + Cast(@UserId as nvarchar(200)))
   INSERT INTO @tmp (seckey) VALUES ('F' + Cast(@UserId as nvarchar(200)))
   IF EXISTS(SELECT RoleId FROM {databaseOwner}[{objectQualifier}UserRoles] WHERE UserID = @UserId AND RoleId = @RegisteredRoleId
      AND    (EffectiveDate <= getdate() or EffectiveDate is null)
      AND    (ExpiryDate >= getdate() or ExpiryDate is null))
     INSERT INTO @tmp (seckey) VALUES ('C')
   
  END
  
 INSERT INTO @tmp (seckey) VALUES ('E')
 
 INSERT INTO @tmp (seckey)
 SELECT 'R' + CAST(ur.RoleId as nvarchar(200))
  FROM {databaseOwner}[{objectQualifier}UserRoles] as ur
   INNER JOIN {databaseOwner}[{objectQualifier}Users] as u on ur.UserId = u.UserId
   INNER JOIN {databaseOwner}[{objectQualifier}Roles] as r on ur.RoleId = r.RoleId
  WHERE  u.UserId = @UserId
   AND    r.PortalId = @PortalId
   AND    (EffectiveDate <= getdate() or EffectiveDate is null)
   AND    (ExpiryDate >= getdate() or ExpiryDate is null)
 INSERT INTO @tmp (seckey)
  SELECT (SELECT CASE WHEN @UserID = ur.UserId
      THEN 'F' + CAST(RelatedUserID as nvarchar(200))
      ELSE 'F' + CAST(ur.UserId as nvarchar(200)) END)
  FROM {databaseOwner}[{objectQualifier}UserRelationships] ur
  INNER JOIN {databaseOwner}[{objectQualifier}Relationships] r ON ur.RelationshipID = r.RelationshipID AND r.RelationshipTypeID = 1
  WHERE (ur.UserId = @UserId OR RelatedUserID = @UserId) AND Status = 2
 RETURN
END

GO

ALTER FUNCTION {databaseOwner}[{objectQualifier}Journal_SplitText](@text nvarchar(MAX), @delimiter char(1))
RETURNS @words TABLE (objectid smallint primary key, string nvarchar(1000) COLLATE database_default, optionalid int)
AS
BEGIN
 DECLARE @pos smallint,
  @i smallint,
  @j smallint,
  @s nvarchar(255),
        @o int

 SET @pos = 1

 WHILE @pos <= LEN(@text)
 BEGIN
  SET @i = CHARINDEX(' ', @text, @pos)
  SET @j = CHARINDEX(@delimiter, @text, @pos)

  IF @i > 0 OR @j > 0
  BEGIN
   IF @i = 0 OR (@j > 0 AND @j < @i)
    SET @i = @j

   IF @i > @pos
   BEGIN
    -- @i now holds the earliest delimiter in the string
    SET @s = SUBSTRING(@text, @pos, @i - @pos)
    SET @o = 0
             IF CHARINDEX('|',@s,0) > 0
     BEGIN
      SET @o = SUBSTRING(@s,0,CHARINDEX('|',@s,0))
      SET @s = SUBSTRING(@s,CHARINDEX('|',@s,0)+1,LEN(@s))
      
     END
    INSERT INTO @words
    VALUES (@pos, @s, @o)
   END

   SET @pos = @i + 1
   WHILE @pos < LEN(@text) AND SUBSTRING(@text, @pos, 1) IN (' ', ',')
    SET @pos = @pos + 1
  END
  ELSE
  BEGIN
   SET @s = SUBSTRING(@text, @pos, LEN(@text) - @pos + 1)
    IF CHARINDEX('|',@s,0) > 0
     BEGIN
      SET @o = SUBSTRING(@s,0,CHARINDEX('|',@s,0))
      SET @s = SUBSTRING(@s,CHARINDEX('|',@s,0)+1,LEN(@s))
      
     END
    
   INSERT INTO @words
   VALUES (@pos, @s ,@o)

   SET @pos = LEN(@text) + 1
  END
 END
 RETURN
END

GO

ALTER FUNCTION {databaseOwner}[{objectQualifier}ConvertListToTable]

 @Delimiter nvarchar(5),
    @List  nvarchar(max)
)
RETURNS @TableOfValues TABLE

 RowNumber smallint IDENTITY(1,1),
    RowValue nvarchar(50) COLLATE database_default
)
AS
   BEGIN
      DECLARE @LenString int
 
      WHILE len( @List ) > 0
         BEGIN
        
            SELECT @LenString =
               (CASE charindex( @Delimiter, @List )
                   WHEN 0 THEN len( @List )
                   ELSE ( charindex( @Delimiter, @List ) -1 )
                END
               )
                               
            INSERT INTO @TableOfValues
               SELECT substring( @List, 1, @LenString )
               
            SELECT @List =
               (CASE ( len( @List ) - @LenString )
                   WHEN 0 THEN ''
                   ELSE right( @List, len( @List ) - @LenString - 1 )
                END
               )
         END
      RETURN
   END
  
 GO
 


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Journal Module  Cannot resolve the collation conflict between "Icelandic_CI_AS" and "Danish_NorwegiaJournal Module Cannot resolve the collation conflict between "Icelandic_CI_AS" and "Danish_Norwegia


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