In article <1144661708.853465.111710 (AT) t31g2000cwb (DOT) googlegroups.com>,
info (AT) vanoordt (DOT) nl says...
Quote:
Although the simple solution that I hoped for doesn't seem to be
available, I'm certainly grateful for your suggestions.
I also thought about using vbscript with AMO. However I didn=3Ft figure
that out either. It's a pity, or at least a novelty, that database
experts have to go into object programming. (If anybody can point me to
a sample script using AMO to process a cube, I'd be helped a lot.) |
I have taken one of the scripts off Chris's site and pulled out the bare
minimum needed to kick off a process of a database and put the details
in a blog article here:
http://geekswithblogs.net/darrengosb.../xmlaProcess.a
spx
You should really also have a look at Proactive Caching. You can set the
cube up to watch one or more fact tables, wait for a specified amount of
"silence" after it sees changes and then automatically process itself.
Setting all this up is a configuration exercise - no coding involved.
An equivalent AMO routine would look something like the following. But
vbscript will not work AMO is a .Net library, you would need to create
a VB.Net (or C#) console application, add a reference to the
Microsoft.AnalysisServices.dll library and compile the whole thing as an
executable.
Quote:
|
Sub processDatabase(ByVal sServerName As String, _
|
ByVal sDatabaseName As String)
Dim svr As New Microsoft.AnalysisServices.Server
svr.Connect(sServerName)
Dim olapDb As Database = svr.Databases.GetByName(sDatabaseName)
olapDb.Process()
svr.Disconnect()
svr.Dispose()
End Sub
--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell