"OLAPMonkey (http://olapmonkey.blogspot.c" wrote:
Quote:
Best to use DSO for that sort of thing. |
I tried to write a test VB.NET app that should do this with DSO, but I get a
problem with the Server Property LastProcessed. This is based on some MSDN
code that loops though all the AS DBs on a given server.
++++++++++++++++++++++++++++++++++++++
Private Sub LastDatabaseUpdate()
Dim dsoServer As New DSO.Server
Dim dsoDB As DSO.MDStore
' Connect to the server.
dsoServer.Connect("localhost")
' For each MDStore database object on the server,
' print its name.
For Each dsoDB In dsoServer.MDStores
'TextBox1.Text = "Database: " + dsoDB.Name + " - " +
dsoDB.LastProcessed
'TextBox1.Text = dsoDB.Name
'TextBox1.Text = dsoDB.Description
'TextBox1.Text = dsoDB.LastUpdated
'LastProcessed does not work while each of the above do!
TextBox1.Text = dsoDB.LastProcessed
++++++++++++++++++++++++++++++++++++
The error message I get is:
An unhandled exception of type 'System.NotSupportedException' occurred in
WindowsApplication1.exe
Additional information: Object doesn't support this action
Anyway, if anyone has any thoughts, please let me know.
Cheers,