cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
COSMED
Level 4

How to modify SQL Script

Hello,

I need to understand how modify sql script during my istallation.

My problem is the following: during the installation I must create and populate a database. I can do it by sql scripts but for the first one I need to change a variable using the network name of the computer where the installation is done. How can I do this?

Thank you in advance for your reply.
Labels (1)
0 Kudos
(2) Replies
Barbara
Level 7

I use the Text Replacement in the SQL Script View: In the SQL Skript I have some predefined strings which are replaced with the actual values during the installation (e.G. DATABASENAME as given by the user, COMPUTERNAME, SERVERNAME and so on.)

Barbara
0 Kudos
COSMED
Level 4

Thank you very much for your reply.

I solved my problem using an InstallScript custom action and running the scrip by cmd.
In this way I could use .Net dll for the calculation of the parameters (eg: local network account) that I needed.
0 Kudos