For web-based, create another sql script to execute the first one, kind like this:
Code:
-- MyScript_Web.sql
@MyScript
exit