Mar 5

Written by: Bruce Chapman
Wednesday, March 05, 2008 3:19 PM

Here's the scenario: You've developed a DNN module and you're happy with the way it is working.  You've found all the obvious bugs and are moving towards starting the packaging and install process.  So you script up all your (working) Sql into a SqlDataProvider file, put it in the module and try an install.

Either the install script fails with a mysterious script syntax error (what the...?) or it fails once you are running a piece of code.

If you're anything like me you delve deep into the T-SQL code, repackage everything, retest everything and get stumped.   Then you start up the Sql Profiler and carefully examine the execution as it happens.

Then you discover, that for some weird reason, all the '+' characters in your script have been removed. 

Thinking there is some heinous bug in DNN you start madly thrashing Google looking for an answer. Surely someone has hit this problem before.   I have even tried searching out for alternative T-SQL syntax for add and concatenate, the two usual uses of the '+' operator (hint: there are no alternatives)

Depending on your search engine skills, you'll eventually happen across the reason: You need to save the SqlDataProvider files in UTF-8.  Depending on which text/script editor you used to create the files, chances are they're not in UTF-8.

The solution? Resave your .SqlDataProvider files in UTF-8, repackage and try your install again.  I'll bet it works now !

And try and remember it next time you create a new module.

Copyright ©2008 Bruce Chapman

Tags:

Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment    Cancel  
Need Help?
 

If you're having trouble with an iFinity Product, use the Support Forums to search for answers, and to post questions.

If you need help faster than that, or can't figure out the answer, try our Premium Support service.