HomeHomeDotNetNuke Forg...DotNetNuke Forg...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 C# MVP, MCITP
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 Consulting Quotes, and DNN Technical Support Services

I recommend PowerDNN and 3Essentials for DotNetNuke Hosting and BaseCamp for project management
 
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
HomeHomeDotNetNuke Forg...DotNetNuke Forg...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


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

Attend A Webinar
Start  Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke (DNN) provides a suite of solutions that make designing, building and managing feature-rich sites and communities fast, easy and cost-effective. The DotNetNuke Platform CMS is the foundation for more than one million websites worldwide. DNN Social, our newest solution, enables businesses to create immersive, interactive communities. Thousands of organizations like True Value Hardware, Bose, Cornell University, Glacier Water, Dannon, Delphi, USAA, NASCAR, Northern Health and the City of Denver have leveraged DNN to deploy highly engaging business- critical websites. Our rapid growth in product sales and deployments resulted in DotNetNuke Corp. being named one of the fastest growing private companies in America by Inc. Magazine in 2011 and 2012.