![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Howdy all. Im not a guru VBS guy and Id like to use it to script out SQL2K db objects. Say I just wanted to script out the views and nothing more. Can VBS do this? Can someone get me pointed in the right direction? TIA, Chris |
#3
| |||
| |||
|
|
-----Original Message----- If you want to do it in VBS and not using EM then you can use the SQLDMO library. Each Database object has a Views Collection. The view object has a Script method -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "chris" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:075701c3a255$de48d1e0$a301280a (AT) phx (DOT) gbl... Howdy all. Im not a guru VBS guy and Id like to use it to script out SQL2K db objects. Say I just wanted to script out the views and nothing more. Can VBS do this? Can someone get me pointed in the right direction? TIA, Chris . |
#4
| |||
| |||
|
|
I appreciate your quick response. Views were an example. Can I use it SQLDMO for other objects as well? -----Original Message----- If you want to do it in VBS and not using EM then you can use the SQLDMO library. Each Database object has a Views Collection. The view object has a Script method -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "chris" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:075701c3a255$de48d1e0$a301280a (AT) phx (DOT) gbl... Howdy all. Im not a guru VBS guy and Id like to use it to script out SQL2K db objects. Say I just wanted to script out the views and nothing more. Can VBS do this? Can someone get me pointed in the right direction? TIA, Chris . |
#5
| |||
| |||
|
|
I appreciate your quick response. Views were an example. Can I use it SQLDMO for other objects as well? -----Original Message----- If you want to do it in VBS and not using EM then you can use the SQLDMO library. Each Database object has a Views Collection. The view object has a Script method -- Allan Mitchell (Microsoft SQL Server MVP) MCSE,MCDBA www.SQLDTS.com I support PASS - the definitive, global community for SQL Server professionals - http://www.sqlpass.org "chris" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:075701c3a255$de48d1e0$a301280a (AT) phx (DOT) gbl... Howdy all. Im not a guru VBS guy and Id like to use it to script out SQL2K db objects. Say I just wanted to script out the views and nothing more. Can VBS do this? Can someone get me pointed in the right direction? TIA, Chris . |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |