Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 need help in the DSO Script

Author  Topic 

santoshd
Starting Member

3 Posts

Posted - 2008-07-31 : 05:18:52
I was trying to Update the existing dimension with the new view name . the script is running fine but the View name is not getting updated

Function Main()

strDBName = "TEST"
strCubeName = "Sales"

Set dsoServer = Createobject("DSO.Server")


' Create a connection to the Analysis server.
dsoServer.Connect "LocalHost"

' Ensure the database exists first.

Set dsoDB = dsoServer.MDStores(strDBName)
Set dsoCube = dsoDB.MDStores(strCubeName)


Set dsoDimension = dsoDB.Dimensions("Calendar_time")
dsoDimension.FromClause = "IDWCP.TIME_CUBE"
dsoDimension.DataSource = dsoDataSource
dsoDimension.JoinClause = ""
dsodimension.update


Main = DTSTaskExecResult_Success
End Function

   

- Advertisement -