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

Run SQL Script against all Schema Versions

I have an Installscript Project and am using the Schema Version to conditionally run update scripts against my database which works great, but I have one script that I need to run regardless of what schema the database is on. How do I tell an SQL Script to run regardless of Schema Version?

Any help would be much appreciated.
Labels (1)
0 Kudos
(3) Replies
DebbieL
Level 17

If you do not specify a schema version number on the General tab for a SQL script in the SQL Scripts view, the script is always launched.
0 Kudos
TheTraveler
Level 8

You could run it using ADO Objects in the OnFirstUIAfter Event or when you want.

Here is a link to an example of running a SQL in ADO objects.
0 Kudos
John_Farkas
Level 4

Thanks for the replies. Much appreciated 🙂
0 Kudos