Forum Discussion
tristaanogre
15 years agoEsteemed Contributor
I would suggest looking at using the commandline portion of the SQL Server Client (osql IIRC) and then creating a WScript.Shell object instance to run it. When done properly, this will wait until the SQL execution is complete and the shell returns before it moves on.