Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
The best choice for your web site host, email hosting, and domain registration.
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Install It!  If database server collation is Turkish_CI_AS, @ID and @id variables are not same
Previous Previous
 
Next Next
New Post 7/30/2007 12:38 PM
User is offline Serkan Subasi
11 posts
www.sbscon.com
10th Ranked


If database server collation is Turkish_CI_AS, @ID and @id variables are not same 

If database server collation is Turkish_CI_AS, then following error occurs
***
System.Data.SqlClient.SqlException: Must declare the variable '@id'.

...

CREATE PROCEDURE dbo.[AddSearchItemWord]
    @SearchItemID int,
    @SearchWordsID int,
    @Occurrences int

AS

DECLARE @ID int
SELECT @id = SearchItemWordID
...


***

In all type of Turkish collations 'i' is not lowercase of 'I', or vice versa 'I' is not uppercase of 'i'
even in case insensitive mode. This behavior causes problems in queries as @ID is not the same definition as @id, these are two different variables.

btw , I want to explain another key point for Turkish collations and/or Regional Settings
when you are using regex without the option RegexOptions.CultureInvariant "<DIV>" and "<div>" are different.
to match such words containing i with case insensitive behaviour you must use RegexOptions.CultureInvariant option.
Could you please keep these in mind. Maybe somewhere you want to match such a keyword etc.

And could you please update your script files to fix these. i.e script file "04.00.01.SqlDataProvider" in line 40 and 47
replace "@ID" --> "@id"

 
New Post 8/7/2007 1:57 AM
User is offline Serkan Subasi
11 posts
www.sbscon.com
10th Ranked


Re: If database server collation is Turkish_CI_AS, @ID and @id variables are not same 

I fixed 8 script files for 4.5.5 to support Turkish Collations, actually I just changed cases of some [i]'s.
Here you can find the updated script files compressed in rar format http://www.sbscon.com/files/SqlDataProviderScriptFix.rar

 
New Post 9/19/2007 8:32 AM
User is offline Ismet Dumlupinar
604 posts
www.mynetnuke.com
7th Ranked




Re: If database server collation is Turkish_CI_AS, @ID and @id variables are not same 

Hello Serkan, did you log this issue to Support Tracker at support.dotnetnuke.com?


Ismet Dumlupinar
MCP/MCDST/MCT
DotNetNuke Türkçe
My DotNetNuke Blog for Global Users
 
New Post 9/22/2007 1:46 PM
User is offline Serkan Subasi
11 posts
www.sbscon.com
10th Ranked


Re: If database server collation is Turkish_CI_AS, @ID and @id variables are not same 

no I did not , I will look at it,

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Install It!  If database server collation is Turkish_CI_AS, @ID and @id variables are not same
 


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.

 


Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com
Expressnet - DotNetNuke Hosting
Expressnet provide premium quality ASP.NET Web Hosting. We specialise in Windows based products including ASP.NET and Microsoft SQL Server. We offer fantastic value packages for DotNetNuke hosting. We also offer free asp.net web hosting
www.expressnet.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP