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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsError installing Modules version 4.1.0 in the SQL Data ProviderError installing Modules version 4.1.0 in the SQL Data Provider
Previous
 
Next
New Post
2/24/2009 4:51 PM
 

Hi there,

Im trying to install the latest documents module on my site (www.dcpscanoeclub.org) and am getting errors when the SQL Data providers execute.

Ive pasted below one of the errors. This same error occurs for all data provider scripts except 4.1.0 (the latest script)

Thanks,

 

------------------------------------

StartJob Begin Sql execution
Info Executing 03.01.00.SqlDataProvider
StartJob Start Sql execution: 03.01.00.SqlDataProvider file
Failure SQL Execution resulted in following Exceptions: System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the 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 dbo.GetDocument @ItemId int, @ModuleId int as select Documents.Itemid, Documents.Moduleid, Documents.Title, 'URL' = case when Files.FileName is null then Documents.URL else Files.Folder + Files.FileName end, Documents.Category, 'CreatedByUser' = Users.FirstName + ' ' + Users.LastName, Files.Size, Files.ContentType, Documents.CreatedDate, UrlTracking.TrackClicks, UrlTracking.NewWindow from Documents left outer join Users on Documents.CreatedByUser = Users.UserId left outer join UrlTracking on Documents.URL = UrlTracking.Url and UrlTracking.ModuleId = @ModuleID left outer join Files on Documents.URL = 'fileid=' + convert(varchar,Files.FileID) where Documents.ItemId = @ItemId and Documents.ModuleId = @ModuleId System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "SQL_Latin1_General_CP1_CI_AS" in the 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 dbo.GetDocuments @ModuleId int, @PortalId int as select Documents.ItemId, Documents.Moduleid, Documents.Title, 'URL' = case when Files.FileName is null then Documents.URL else Files.Folder + Files.FileName end, 'CreatedByUser' = Users.FirstName + ' ' + Users.LastName, Documents.CreatedDate, Documents.Category, Files.Size, UrlTracking.TrackClicks, UrlTracking.NewWindow from Documents left outer join Users on Documents.CreatedByUser = Users.UserId left outer join Files on Documents.URL = 'fileid=' + convert(varchar,Files.FileID) left outer join UrlTracking on Documents.URL = UrlTracking.Url and UrlTracking.ModuleId = @ModuleID where Documents.ModuleId = @ModuleId order by Documents.Title
EndJob End Sql execution: 03.01.00.SqlDataProvider file
 
New Post
2/24/2009 5:07 PM
 

It looks like we might have an issue with database collation.  Have you modified any collation values?


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
New Post
2/24/2009 5:17 PM
 

Hi Mitch,

 

Thanks for getting back to me so soon. Sorry I don't know what that means, so I probably havent! 

I just tried it on a blank site and it works fine. On the dcps canoe club site it doesn't work.

I also have Ventrian News Articles and Simple Gallery installed. Apart from that no modifications to the database that i've made and default configuration.

 

I am using Dotnetnuke 4.9.0 and also my hosting provider is seekdotnet if that helps.

Cheers,

 
New Post
2/26/2009 3:11 PM
 

Ok I submitted a support ticket to seekdotnet to see if they have any insights too. 

They said my collation was wrong (set to X) but in the control panel it says it was set to SQL_Latin1_General_CP1_CI_AS. 

I tried forcing it to be SQL_Latin1_General_CP1_CI_AS via the control panel, no luck. 

Do you know how I can do this with SQL scripts? Perhaps their control panel software is rubbish ...


Thank you,

Andrew

 

 
New Post
6/8/2009 10:13 AM
 

Hello, I am having the same issue, both with the Announcements module and with the Forum module. The issue is that a couple fields in my database, namely in the tables Announcements, Files, and UrlTracking, are set to a different collation that the database default - they are set to Latin1_General_CI_AS instead of SQL_Latin1_General_CP1_CI_AS which is my database's collation.

I have managed to get around this by opening up the modules installation .zips and changing the SqlDataProviders themselves. For example, whenever the field FileName from the table dbo.Files is mentioned, I change it from FileName to (FileName COLLATE Latin1_General_CI_AS). This fixes the problem.

HOWEVER - I am concerned that these fields remain in a different collation in the database, and the potential problems that may derivate from this in future module installations. So I have tried the opposite approach, changing the collation of the fields directly in SQL Server. For this I used the following script, adapted for every field and its dependent constraints:

ALTER TABLE dbo.UrlTracking DROP CONSTRAINT IX_UrlTracking

ALTER TABLE dbo.UrlTracking ALTER COLUMN Url nvarchar(255) COLLATE DATABASE_DEFAULT NOT NULL

ALTER TABLE dbo.UrlTracking
ADD CONSTRAINT [IX_UrlTracking] UNIQUE NONCLUSTERED
(
 [PortalID] ASC,
 [Url] ASC,
 [ModuleId] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]

But after doing this, DotNetNuke itself crashed with a collation error, and won't show any pages of my website.

Any better ideas?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsError installing Modules version 4.1.0 in the SQL Data ProviderError installing Modules version 4.1.0 in the SQL Data Provider


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