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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Syntax error when installing module but SQL is fineSyntax error when installing module but SQL is fine
Previous
 
Next
New Post
5/6/2008 1:10 PM
 

I am having a strange problem with one of my modules. When I install it I get a syntax error in one of the sql provider files. When I copy the complete content of this sql file and execute it from Host>SQL with "run as script" the SQL executes without any problem. This leads me to think that there is no actual syntax error in the script but rather that the sql is interpreted in two diferent ways.

I hope somebody can shed some light on this.

Thanks.

 
New Post
5/6/2008 6:30 PM
 

Make sure that you are saving your SqlProvider files with encoding UTF-8 not ANSI. Otherwise, some characters (most notibly the '+') will get stripped out when the script is run in the installer.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
5/7/2008 5:24 PM
 

At a risk of sounding stupid but how can I check this? And how can I save it as UTF-8 from Visual studio?

 
New Post
5/7/2008 6:12 PM
 

Believe it or not, humble Notepad can do the job. Use File | Save As, then choose your Encoding from the dropdown at the bottom of the dialog.

If this doesn't do the trick can you post details of the error and the offending SQL?

Regards, Rhys


www.rmjcs.com - Mostly SQL Server Stuff
 
New Post
5/8/2008 10:44 AM
 

Thanks a lot guys this was the problem. Is there a way to check the encoding used for textfiles so you can easily spot a file that has the wrong encoding?

Stephan
http://www.mexmax-internet.com

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Syntax error when installing module but SQL is fineSyntax error when installing module but SQL is fine


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