I can't view member list?

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/4/2007 2:24:48 AM
Gravatar
Total Posts 550

I can't view member list?

Hi Joe

When I click member list link followin error apears:

"Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Arabic_CI_AS" in the equal to operation."

My Database is 2005 and database collation is :"Arabic_CI_AS".

thanks.

A.Samarian

 

10/4/2007 3:35:52 PM
Gravatar
Total Posts 18439

Re: I can't view member list?

Hi A.Samarian,

This sounds like a configuration issue. We don't specify collation in any of the scripts for MS SQL so it will use the default collation. The error sounds like something in your database has the SQL_Latin1_General_CP1_CI_AS collation. Even if you have Arabic_CI_AS as the database default maybe some table got created with the latin collation.

I suspect the error is happening in the stored procedure mp_Users_SelectPage, probably on this line:

AND [Name] LIKE @UserNameBeginsWith + '%'

try changing it to this:

AND [Name] COLLATE DATABASE_DEFAULT LIKE @UserNameBeginsWith + '%' COLLATE DATABASE_DEFAULT

Let me know if that fixes it.

Hope it helps,

Joe

10/5/2007 3:55:02 AM
Gravatar
Total Posts 550

Re: I can't view member list?

Hi joe
After 1 hours working I find the error:
The default collation of temporary tables is Server collation (not Database collation).
I correct the mp_Users_SelectPage stored procedure like following:
Best Regards
A. Samarian
USE [Samarian]
GO
/****** Object: StoredProcedure [dbo].[mp_Users_SelectPage] Script Date: 10/05/2007 02:31:02 ******/
SET ANSI_NULLS OFF
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[mp_Users_SelectPage]

/*
Author: Joe Audette
Created: 2004-10-3
Last Modified: 2007-07-14

*/

@PageNumber int,
@PageSize int,
@UserNameBeginsWith nvarchar(50),
@SiteID int


AS
DECLARE @PageLowerBound int
DECLARE @PageUpperBound int


SET @PageLowerBound = (@PageSize * @PageNumber) - @PageSize
SET @PageUpperBound = @PageLowerBound + @PageSize + 1

--SET @PageLowerBound = @PageSize * @PageNumber
--SET @PageUpperBound = @PageLowerBound + @PageSize + 1


CREATE TABLE #PageIndexForUsers
(
IndexID int IDENTITY (1, 1) NOT NULL,
UserName nvarchar(50) COLLATE DATABASE_DEFAULT,
LoginName nvarchar(50) COLLATE DATABASE_DEFAULT
)
.
.
.
.

10/5/2007 8:00:17 AM
Gravatar
Total Posts 18439

Re: I can't view member list?

Hi A.Samarian,

That makes sense. Good job finding the cause of the problem! I will make the same change here and will keep this issue in mind when creating temp tables.

Thanks,

Joe

You must sign in to post in the forums. This thread is closed to new posts.