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 to 5.0.1 from 4.9.2upgrade to 5.0.1 from 4.9.2
Previous
 
Next
New Post
3/26/2009 9:16 AM
 

Hello,

I have a problem when i try to update Dnn to 5.0.1:

05.00.00.log :

System.Data.SqlClient.SqlException: Impossible de résoudre le conflit de classement de la colonne 2 dans l'instruction SELECT.
   à System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   à System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   à System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   à System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   à System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   à System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   à System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   à DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   à DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)

 

CREATE PROCEDURE dbo.[GetPortalSettings]
 @PortalID int

AS
 SELECT
  SettingName,
  CASE WHEN LEFT(LOWER(dbo.PortalSettings.SettingValue), 6) = 'fileid'
   THEN
    (SELECT Folder + FileName 
     FROM dbo.Files
     WHERE 'fileid=' + convert(varchar,dbo.Files.FileID) = dbo.PortalSettings.SettingValue
    )
   ELSE
    dbo.PortalSettings.SettingValue 
   END
  AS SettingValue
 FROM dbo.PortalSettings
 WHERE  PortalID = @PortalID


System.Data.SqlClient.SqlException: La sous-requête a retourné plusieurs valeurs. Cela n'est pas autorisé quand la sous-requête suit =, !=, <, <= , >, >= ou quand elle est utilisée en tant qu'expression.
L'instruction a été arrêtée.
   à System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   à System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   à System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   à System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   à System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   à System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   à System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   à DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   à DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)

 

/* Update IconFile References for Admin Tabs */
/*********************************************/

UPDATE dbo.Tabs
 SET IconFile = '~/images/' + IconFile
 WHERE IconFile LIKE 'icon_%'
  AND (TabPath LIKE '//Host%' OR TabPath LIKE '//Admin%')


System.Data.SqlClient.SqlException: La sous-requête a retourné plusieurs valeurs. Cela n'est pas autorisé quand la sous-requête suit =, !=, <, <= , >, >= ou quand elle est utilisée en tant qu'expression.
L'instruction a été arrêtée.
   à System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   à System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   à System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   à System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   à System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   à System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   à System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   à DotNetNuke.Data.SqlDataProvider.ExecuteADOScript(String SQL)
   à DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions)

 

/* Set Admin and Host Pages to be Secure By Default */
/****************************************************/

UPDATE dbo.[Tabs]
    SET IsSecure = 1
WHERE PortalID IS NULL
    OR TabID IN (SELECT AdminTabId FROM dbo.[Portals])
    OR ParentId IN (SELECT AdminTabId FROM dbo.[Portals])

 

 Anyone can help me ?

Thank you

 
New Post
3/26/2009 10:13 AM
 

please be aware, that DNN 5 is not yet suggested for use in production.

I'd appreciate, if you log the error into the public issue tracker (2nd from top) at support.dotnetnuke.com, so we have a chance to fix it for next version.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/6/2009 6:06 PM
 

I got same error when upgrading from 4.8.4 to 5.0.1, then i found my database collation is Latin1_General_CI_AS not same as collation used in [Files] table SQL_Latin1_General_CP1_CI_AS

So I changed sql script in \Providers\DataProviders\SqlDataProvider\05.00.00.SqlDataProvider from

SELECT Folder + FileName

to

SELECT (Folder + FileName) collate SQL_Latin1_General_CP1_CI_AS

problem solved.

 

if you already installed you could run following script in sql server

GO

/****** Object:  StoredProcedure [dbo].[GetPortalSettings]    Script Date: 04/07/2009 09:30:42 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO




alter PROCEDURE [dbo].[GetPortalSettings]
    @PortalID int

AS
    SELECT
        SettingName,
        CASE WHEN LEFT(LOWER(dbo.PortalSettings.SettingValue), 6) = 'fileid'
            THEN
                (SELECT (Folder + FileName) collate SQL_Latin1_General_CP1_CI_AS
                    FROM dbo.Files
                    WHERE 'fileid=' + convert(nvarchar,dbo.Files.FileID) = dbo.PortalSettings.SettingValue
                )
            ELSE
                dbo.PortalSettings.SettingValue 
            END
        AS SettingValue
    FROM dbo.PortalSettings
    WHERE  PortalID = @PortalID

GO

 

 

hope this help

 

 
New Post
4/7/2009 3:35 AM
 

 you should never need to use any collation in scripts except when using temp tables, where COLLATE DATABASE should be used, to be able to run in situations, where server collation is different from database collation.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
12/11/2009 1:00 PM
 

Hi

I've had exactly the same problem upgrading from 4.9.2 to 5.1.1. To get the install to run (almost 100% cleanly) without the collation errors I had to modify  05.00.00.SqlDataProvider, 05.00.01.SqlDataProvider & 05.01.00.SqlDataProvider as per dnnix's solution above.

A bug report on this was closed as it could not be reproduced. However it does seem to be reproducing itself.

Has anybody found a solution to this?

Thanks in advance

Phil

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...upgrade to 5.0.1 from 4.9.2upgrade to 5.0.1 from 4.9.2


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