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

Running SQL script on fail only

Hi,

I'm trying to Deploy a SQL database through installshield (installscript project), but I want to have it so that if the database exists already, script A will fail (which happens) but only in this case, call on script B. Is there any way to do this?

Regards,

J
Labels (1)
0 Kudos
(2) Replies
SteveLovell
Level 5

Wouldn't you do this using SQL statements, such as if not exists do A if exists do B?
0 Kudos
instTst
Level 4

I want to also do some custom actions in the installer if SQL fails. Just curious.
0 Kudos