![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I would like to delete an Analysis Services db from the command line instead of going through the GUI. How can I do this? |
#3
| |||
| |||
|
|
This is really simple. Build a console C# application. Add a reference to AMO (Microsoft.AnalysisServices ) to it. All the code need in your application is something like: Server ASserver = new Server(); ASserver.Connect("DataSource = MyServer;"); ASserver.Execute("<Delete xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\" Object><DatabaseID>MyDB</DatabaseID></Object></Delete>"); ----- This posting is provided "AS IS" with no warranties, and confers no rights "Matt" <Matt (AT) discussions (DOT) microsoft.com> wrote in message news:34882A99-B832-4BC8-A0EF-165AB68B6905 (AT) microsoft (DOT) com... I would like to delete an Analysis Services db from the command line instead of going through the GUI. How can I do this? |
#4
| |||
| |||
|
|
I'm not really much of a programmer, and I've never used C# before. Is there any other way of doing this? "Edward Melomed [MSFT]" wrote: This is really simple. Build a console C# application. Add a reference to AMO (Microsoft.AnalysisServices ) to it. All the code need in your application is something like: Server ASserver = new Server(); ASserver.Connect("DataSource = MyServer;"); ASserver.Execute("<Delete xmlns=\"http://schemas.microsoft.com/analysisservices/2003/engine\" Object><DatabaseID>MyDB</DatabaseID></Object></Delete>"); ----- This posting is provided "AS IS" with no warranties, and confers no rights "Matt" <Matt (AT) discussions (DOT) microsoft.com> wrote in message news:34882A99-B832-4BC8-A0EF-165AB68B6905 (AT) microsoft (DOT) com... I would like to delete an Analysis Services db from the command line instead of going through the GUI. How can I do this? |
![]() |
| Thread Tools | |
| Display Modes | |
| |