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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSQL Data provider script execution during module installationSQL Data provider script execution during module installation
Previous
 
Next
New Post
7/16/2010 4:16 AM
 
Hi,

Please can anyone point me to some documentation on how the module installation process executes the SQL Data Provider scripts defined in the manifest file? Looking at the code, it appears that there are more options available than those illustrated in the VS DNN PA Module template, and, based on the tests I have carried out, it doesn't seem to work the way I expected it to.

There are two things I am interested in in particular:
  • if I have module version 00.01.00 installed, and install over it a new version 01.00.00, given that there are scripts for each version defined in the manifest, which scripts should be executed during the installation??
  • if I reinstall 01.00.00 (ie. "Repair" it), should the corresponding script be executed again?
For point 1, I would expect only the 01.00.00 script to be executed, but both appear to be.

For point 2, I would expect the 01.00.00 script to be executed again, but it appears not to be. If you change the script (designed to be re-runnable btw), repackage the module and reinstall / repair it,  the script that is left in the module folder is not the changed version, but the previous one.

I would appreciate if anyone can offer clarification on how this is supposed to work.


Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
7/16/2010 5:07 AM
 
Incidentally, here is an extract from the installer trace on Reinstalling version 01.00.00 - no mention of the relevant script:

StartJob Starting Installation
Info Starting Installation - Dotcom.MyModule
Info Starting Installation - Script
Info Begin Sql execution
Info Creating backup of previous version - Providers\DataProviders\SqlDataProvider\Uninstall.SqlDataProvider
Info Created - Providers\DataProviders\SqlDataProvider\Uninstall.SqlDataProvider
Info Finished Sql execution
Info Component installed successfully - Script


Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
7/16/2010 6:06 AM
 
Paul, due to most module developers having issues creating re-runnable sql scripts, during re-install the database script does not get executed again.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/18/2010 10:25 AM
 
Thanks Sebastian, helpful to know that.


Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesSQL Data provider script execution during module installationSQL Data provider script execution during module installation


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