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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 3.2.2 to 4.8.1. Cannot resolve collation conflict for equal to operationUpgrade 3.2.2 to 4.8.1. Cannot resolve collation conflict for equal to operation
Previous
 
Next
New Post
4/4/2008 5:29 PM
 

Error ocorre in the CheckUpgrade create SP

 

Upgrading DotNetNuke

Current Assembly Version: 04.08.01

Current Database Version: 03.02.02

00:00:00.124 -   Executing Script: Upgrade.SqlDataProvider Error! (see Upgrade.log for more information)

Warning:

Could not find stored procedure 'porta4br2.DNN3_CheckUpgrade'.

More than 1000 Users

This DotNetNuke Database has 15318 users. As the users and their profiles are transferred to a new format, it is estimated that the script will take ~1.41 minutes to execute.



Click Here To Proceed With The Upgrade.

 

The upgrade.log file

System.Data.SqlClient.SqlException: Cannot resolve collation conflict for equal to operation.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)


CREATE PROCEDURE porta4br2.[DNN3_CheckUpgrade]

AS

 -- Declare a local table variable to hold the duplicate users we are going to transfer
 DECLARE @DuplicateUsers TABLE (
  UserName nvarchar(200) NULL,
  Duplicates int
 )

 INSERT INTO @DuplicateUsers
  SELECT username, 'Duplicates' = count(*)
  FROM aspnet_Users
  GROUP BY username
  HAVING count(*)   > 1
  ORDER BY Duplicates DESC

 SELECT
  U.UserID,
  U.Username,
  U.FirstName,
  U.LastName,
  U.Email,
  D.Duplicates
 FROM porta4br2.DNN3_Users U
  INNER JOIN @DuplicateUsers D ON U.UserName = D.UserName
 WHERE U.IsSuperUser = 1

 SELECT
  U.UserID,
  U.Username,
  U.FirstName,
  U.LastName,
  U.Email,
  D.Duplicates
 FROM porta4br2.DNN3_Users U
  INNER JOIN @DuplicateUsers D ON U.UserName = D.UserName
 WHERE U.IsSuperUser = 0

 

System.Data.SqlClient.SqlException: Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
Grantor does not have GRANT permission.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText)
   at DotNetNuke.Data.SqlDataProvider.GrantStoredProceduresPermission(String Permission, String LoginOrRole)

declare @exec nvarchar(2000) declare @name varchar(150) declare sp_cursor cursor for select o.name as name from dbo.sysobjects o where ( OBJECTPROPERTY(o.id, N'IsProcedure') = 1 or OBJECTPROPERTY(o.id, N'IsExtendedProc') = 1 or OBJECTPROPERTY(o.id, N'IsReplProc') = 1 ) and OBJECTPROPERTY(o.id, N'IsMSShipped') = 0 and o.name not like N'#%%' and (left(o.name,len('DNN3_')) = 'DNN3_' or left(o.name,7) = 'aspnet_') open sp_cursor fetch sp_cursor into @name while @@fetch_status >= 0 begin  select @exec = 'grant EXECUTE on ' +  @name  + ' to [porta4br2]'  execute (@exec)  fetch sp_cursor into @name end deallocate sp_cursor

System.Data.SqlClient.SqlException: Grantor does not have GRANT permission.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters)
   at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText)
   at DotNetNuke.Data.SqlDataProvider.GrantUserDefinedFunctionsPermission(String ScalarPermission, String TablePermission, String LoginOrRole)

declare @exec nvarchar(2000) declare @name varchar(150) declare @isscalarfunction int declare @istablefunction int declare sp_cursor cursor for select o.name as name, OBJECTPROPERTY(o.id, N'IsScalarFunction') as IsScalarFunction from dbo.sysobjects o where ( OBJECTPROPERTY(o.id, N'IsScalarFunction') = 1 OR OBJECTPROPERTY(o.id, N'IsTableFunction') = 1 ) and OBJECTPROPERTY(o.id, N'IsMSShipped') = 0 and o.name not like N'#%%' and (left(o.name,len('DNN3_')) = 'DNN3_' or left(o.name,7) = 'aspnet_') open sp_cursor fetch sp_cursor into @name, @isscalarfunction while @@fetch_status >= 0 begin if @IsScalarFunction = 1 begin  select @exec = 'grant EXECUTE on ' +  @name  + ' to [porta4br2]'  execute (@exec)  fetch sp_cursor into @name, @isscalarfunction  end else begin  select @exec = 'grant SELECT on ' +  @name  + ' to [porta4br2]'  execute (@exec)  fetch sp_cursor into @name, @isscalarfunction  end end deallocate sp_cursor

 

 
New Post
4/4/2008 7:44 PM
 

Hi,

Try to replace in the body of the procedure (if you can) this code

DECLARE @DuplicateUsers TABLE (
  UserName nvarchar(200) NULL,
  Duplicates int
 )

with this code:


DECLARE @DuplicateUsers TABLE (
  UserName nvarchar(200) collate database_default NULL,
  Duplicates int
 )

 

in general, this error means that the collation of tempdb database (which usually is same as server's default collation) does not match collation of your dnn database.

collation is the way of handling sorting and national characters.

hth

Piotr

 
New Post
4/4/2008 9:09 PM
 

Josauro,

I hope you backed up your database and filesystem and are familiar with rolling back to your previous DNN 3.2.2 installation.

There have been some changes in the database which is making a compariosn (by way of "equals") of a value in one database to a value in the other database not possible with out adding a reference to default colation on each side of the equals sign. Essentially, the databases are no longer directly compatible.

I recently upgraded from DNN 3.1.1. I recommend that you upgrade from 3.2.2 like this:

3.2.2 to 3.7

3.7 to 4.2

4.2 to 4.8.2

I believe those are the stepping-stone upgrades that would be best; someone please correct me if I'm off ...


pmgerholdt
 
New Post
4/5/2008 5:24 AM
 

Michael Gerholdt wrote

I recommend that you upgrade from 3.2.2 like this:

3.2.2 to 3.7

3.7 to 4.2

4.2 to 4.8.2

according to my experinece and insight of the changes, I strongly suggest the following steps:

3.2.2 - 4.0.3 - 4.3.7 - 4.4.1 - 4.5.5 - 4.8.2


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/7/2008 8:09 AM
 

In the DNN download dont have the all older verison :-(

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 3.2.2 to 4.8.1. Cannot resolve collation conflict for equal to operationUpgrade 3.2.2 to 4.8.1. Cannot resolve collation conflict for equal to operation


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