This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Sql Db Backup
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Jul 23, 2010
05:28 AM
Sql Db Backup
I am wanting to backup a SQL database before I apply the patch sql scripts.
As the database information is stored in the registry of the computer that I will be running the installer on. I was thinking that I could do a system search to find the information then assign this to a property value then use this in the SQL Script
Is this possible?
As the database information is stored in the registry of the computer that I will be running the installer on. I was thinking that I could do a system search to find the information then assign this to a property value then use this in the SQL Script
Is this possible?
(1) Reply
Jul 26, 2010
09:25 AM
In order to use the value of a Windows Installer property in a SQL script, you need to use the Text Replacement functionality. The following sample SQL script illustrates how you create a database with the name storted in the Windows Installer property named MYDATABASENAME:
Add the following entry on the Text Replacement tab for the SQL script.
CREATE DATABASE %database_name%
Add the following entry on the Text Replacement tab for the SQL script.
Find What: %database_name%
Replace With: [MYDATABASENAME]
Replace With: [MYDATABASENAME]