isql -U<login> -i <script_file>
of course, you could do it in a perl script like so:
update: corrected code
while (my $line = <$FH>) { my $batch; do { $batch .= $line; last unless $line = <$FH>; } until ($line =~ m/^\s*go\s*$/i); $dbh->do($batch) if ($line =~ m/^\s*go\s*$/i); }
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
In reply to Re: ALTER SPROC activation
by jfroebe
in thread ALTER SPROC activation
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |