INF: How to Use the SQL Server DMO Objects from VBScript (214820)
The information in this article applies to:
This article was previously published under Q214820 SUMMARY
This article contains a basic sample of how you can use SQL Server Distributed Management Objects (SQL-DMO) from within VBScript.
VBScript has some basic differences from Visual Basic, which must be understood in order to successfully construct error-free VBScript code. - Any type library constant that you want to use must be explicitly declared in the script. If you do not use Option Explicit, then all references to constants that are not explicitly declared are initialized as new variables. This may cause unexpected behavior as all variables are initialized to zero(0).
- All objects must be created using Late Binding (i.e. CreateObject). Therefore, Events from the created objects are not supported.
- Control Flow calls and Error Handling are limited.
Modification Type: | Major | Last Reviewed: | 7/29/1999 |
---|
Keywords: | kbhowto kbinfo KB214820 |
---|
|