Register   Login
     
  Latest Posts  
RE: Does anyone have XHTML Compliant PA Template
by georgelew on 1/09/2009 11:53 AM
Reduce the text size of the description in RSS feeds
by schotman on 1/09/2009 10:49 AM
RE: Ligtbox effect does not working in DNN 5
by smcculloch on 1/09/2009 9:49 AM
RE: Embed the coolest google local search map control
by aviavia on 1/09/2009 8:06 AM
RE: Embed the coolest google local search map control
by odove on 1/09/2009 6:43 AM
RE: Ligtbox effect does not working in DNN 5
by David Eccles on 1/09/2009 6:11 AM
Changing The Home Directory.
by rtnovak on 1/09/2009 1:03 AM
RE: Updating Simple Gallery
by rtnovak on 1/09/2009 12:54 AM
RE: Select Image Button does not work.
by rtnovak on 1/09/2009 12:53 AM
Updating Simple Gallery
by rtnovak on 1/08/2009 9:59 PM
  Forums  
Subject: SQL Hosting Question
Prev Next
You are not authorized to post a reply.

Author Messages
DNN ProfessorUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:744


7/25/2006 10:12 AM  

One of our sites was just transferred to a new sql box at WebHost4Life. Since the transfer, we cannot access our log viewer - the following error:

Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.GetLog(Int32 PageSize, Int32 PageIndex) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Services.Log.EventLog.LogController.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Modules.Admin.Log.LogViewer.BindData() at DotNetNuke.Modules.Admin.Log.LogViewer.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

Any help would be appreciated.

TIA
Buck


Buck Anderson
DNNprofessor.com
dnnprofessor.com
JustNorth Outdoors
justnorth.com
Jive Media Group LLC
jivemg.com
DNN ProfessorUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:744


7/25/2006 10:17 AM  
Posted By justnorth on 7/25/2006 10:12 AM

One of our sites was just transferred to a new sql box at WebHost4Life. Since the transfer, we cannot access our log viewer - the following error:

Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AI" and "SQL_Latin1_General_CP1_CI_AS" in the equal to operation. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.GetLog(Int32 PageSize, Int32 PageIndex) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Services.Log.EventLog.LogController.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Modules.Admin.Log.LogViewer.BindData() at DotNetNuke.Modules.Admin.Log.LogViewer.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

Any help would be appreciated.

TIA
Buck

Another question:
If I change the collation type, how will this affect a upgrade from DNN 3.2.2 to DNN 4.3?



Buck Anderson
DNNprofessor.com
dnnprofessor.com
JustNorth Outdoors
justnorth.com
Jive Media Group LLC
jivemg.com
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12820


7/25/2006 4:48 PM  
Not really a collation expert, but obviously some of your tables have changed collation when moving, they can't set the database to have the same collation as your old site?

Scott McCulloch
Site Administrator
Peter WarrenUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:77

7/25/2006 5:37 PM  

There is probably nothing wrong with the collation in justnorth's database. The problem is likely to be with the temp database (and only the host can change that with a reinstall of SQL or (potentially) lots of (down)time and effort).  If the collation is different (the host may have elected to chose a different collation when installing SQL - maybe due to country and expected client base) then any stored procedure which creates temporary tables will be affected.

You can get around this hosting provider limitation if you are prepared to modify any stored procedures which use temporary tables by adding a specific collation statement to each (n)varchar and (n)char and (n)text fields in the create table part of the stored procedure.  See this example which has been modified.

CREATE PROCEDURE dbo.GetEventLog
 @PortalID int,
 @LogTypeKey nvarchar(35),
 @PageSize int,
 @PageIndex int
AS

 DECLARE @PageLowerBound int
 DECLARE @PageUpperBound int
 -- Set the page bounds
 SET @PageLowerBound = @PageSize * @PageIndex
 SET @PageUpperBound = @PageLowerBound + @PageSize + 1

 CREATE TABLE #PageIndex
 (
  IndexID  int IDENTITY (1, 1) NOT NULL,
  LogGUID varchar(36) COLLATE Latin1_General_CI_AS
 )

 INSERT INTO #PageIndex (LogGUID)
 SELECT EventLog.LogGUID
 FROM EventLog
 INNER JOIN EventLogConfig
  ON EventLog.LogConfigID = EventLogConfig.ID
 WHERE (LogPortalID = @PortalID or @PortalID IS NULL)
  AND (EventLog.LogTypeKey = @LogTypeKey or @LogTypeKey IS NULL)
 ORDER BY LogCreateDate DESC


 SELECT EventLog.*
 FROM EventLog
 INNER JOIN EventLogConfig
  ON EventLog.LogConfigID = EventLogConfig.ID
 INNER JOIN #PageIndex PageIndex
  ON EventLog.LogGUID = PageIndex.LogGUID
 WHERE PageIndex.IndexID   > @PageLowerBound 
  AND PageIndex.IndexID   < @PageUpperBound 
 ORDER BY
  PageIndex.IndexID 

 SELECT COUNT(*) as TotalRecords
 FROM #PageIndex


GO

If you generate a SQL script for all the stored procedures and search for CREATE TABLE you should be able to identify and fix the problem(s).  From my recollection, the above stored procedure is the only one in a default DNN installation.

Alternatively, look for an alternative hosting provider which provides full support for DNN.

 

Peter WarrenUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:77

7/25/2006 5:54 PM  
Maybe I was a bit harsh on WebHost4Life. But they should know better.

If I change the collation type, how will this affect a upgrade from DNN 3.2.2 to DNN 4.3?

Collation is a pain. You are better to be in an environment which is set up to suit default DNN installations.
I would not change the db collation, although I do have one installation (at a different hosting provider) with the above (sp) modification and have no problems thus far. Not recommended at all. Too many potential problems.
DNN ProfessorUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:744


7/28/2006 7:21 AM  

Thanks for you replies. This is starting to bum me out. After waiting 4 days for a reply from WebHost4Life, Their reply was:

Did you change the DB collation after you create it? If you did, you'll have to contact DNN for help. This is not something we can support because all of our server is working fine with original DNN installations.

Cripes, they moved the database to the new server because the other server was dropping my database for several hours a day.

After informing them that I was going to be out of the country until a specific date, they went and transferred the database to the new server while I was gone.

When I returned, all I did was make a backup from the original server and restored to the new server because there was 4 days of site action after they moved it.

I am at a loss as to what to do. I appreciate internetcreative's suggestion to run the procs, but I don't want to take a chance of mucking up 2 years of site data.

So far, the only thing I have found to not work is the log viewer. Any additional suggestions would be much appreciated.

We are preparing to upgrade to 4.3 and getting a little nervous about this.

TIA
Buck



Buck Anderson
DNNprofessor.com
dnnprofessor.com
JustNorth Outdoors
justnorth.com
Jive Media Group LLC
jivemg.com
Robert AxfordUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:765


12/04/2006 4:02 AM  
well hurrah for webhost4life.. I'm now in this same boat. Was there a workable solution to this problem?
Regards,
Rob
DNN ProfessorUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:744


12/04/2006 1:14 PM  
Hi Rob,
Yes, I found a solution. I moved the site to websecurestores.com

Buck Anderson
DNNprofessor.com
dnnprofessor.com
JustNorth Outdoors
justnorth.com
Jive Media Group LLC
jivemg.com
You are not authorized to post a reply.
Forums > General > DotNetNuke Questions > SQL Hosting Question



ActiveForums 3.7