dbTalk Databases Forums  

Class not defined: DSO

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Class not defined: DSO in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
GS
 
Posts: n/a

Default Class not defined: DSO - 11-13-2005 , 11:34 PM






SQL Server 2000
I am using Active X script to add roles to Analysis Database. I am using the
below code

Dim dsoServer
Set dsoServer = New DSO.Server
dsoServer.Connect "LocalHost"

Dim dsoDatabase

' Create an interface for the database.

' Use the AddNew method of the server's MDStores collection to create the
new database:
Set dsoDatabase = dsoServer.MDStores.AddNew("MyDatabase")

' Create database roles.
Dim DbRole_FinanceMgrs
Dim DbRole_ProductionMgrs
Dim DbRole_SalesMgrs
Set DbRole_FinanceMgrs = dsoDatabase.Roles.AddNew("FinanceManagers")
Set DbRole_ProductionMgrs = dsoDatabase.Roles.AddNew("ProductionManagers")
Set DbRole_SalesMgrs = dsoDatabase.Roles.AddNew("SalesManagers")

' Update the repository for the database roles.
DbRole_FinanceMgrs.Update
DbRole_ProductionMgrs.Update
DbRole_SalesMgrs.Update

Main = DTSTaskExecResult_Success

But when i execute this step, its giving me an error saying "Class not
defined: DSO ".

FRom
http://msdn.microsoft.com/library/de...about_27hh.asp,
I understand that we need Msmdso.rll in C:\Program Files\Common
Files\Microsoft Shared\DSO. But for some wierd reasons I dotn find them in my
computer.

Is this something that gets installed when you install analysis services or
should we do any additional settings for this. Can someone help me here?

Thanks
GS


Reply With Quote
  #2  
Old   
GS
 
Posts: n/a

Default RE: Class not defined: DSO - 11-14-2005 , 12:19 AM






My bad,

I could locate Msmdso.rll in the location C:\Program Files\Common
Files\Microsoft Shared\DSO\Resources\1033, but still my code is throwing the
error "Class not defined: DSO".

Should I register Msmdso.rll also under shared dll in registry. Are these
dlls installed when Analysis Services is installed?

Pls help

Thanks
GS

"GS" wrote:

Quote:
SQL Server 2000
I am using Active X script to add roles to Analysis Database. I am using the
below code

Dim dsoServer
Set dsoServer = New DSO.Server
dsoServer.Connect "LocalHost"

Dim dsoDatabase

' Create an interface for the database.

' Use the AddNew method of the server's MDStores collection to create the
new database:
Set dsoDatabase = dsoServer.MDStores.AddNew("MyDatabase")

' Create database roles.
Dim DbRole_FinanceMgrs
Dim DbRole_ProductionMgrs
Dim DbRole_SalesMgrs
Set DbRole_FinanceMgrs = dsoDatabase.Roles.AddNew("FinanceManagers")
Set DbRole_ProductionMgrs = dsoDatabase.Roles.AddNew("ProductionManagers")
Set DbRole_SalesMgrs = dsoDatabase.Roles.AddNew("SalesManagers")

' Update the repository for the database roles.
DbRole_FinanceMgrs.Update
DbRole_ProductionMgrs.Update
DbRole_SalesMgrs.Update

Main = DTSTaskExecResult_Success

But when i execute this step, its giving me an error saying "Class not
defined: DSO ".

FRom
http://msdn.microsoft.com/library/de...about_27hh.asp,
I understand that we need Msmdso.rll in C:\Program Files\Common
Files\Microsoft Shared\DSO. But for some wierd reasons I dotn find them in my
computer.

Is this something that gets installed when you install analysis services or
should we do any additional settings for this. Can someone help me here?

Thanks
GS


Reply With Quote
  #3  
Old   
Darren Gosbell
 
Posts: n/a

Default RE: Class not defined: DSO - 11-14-2005 , 05:00 PM



Quote:
Should I register Msmdso.rll also under shared dll in registry. Are these
dlls installed when Analysis Services is installed?
I don't think you can register a .rll file, it is simply a resource
file. And these dll's should be installed when you install AS, Analysis
Manager uses these same dlls to manage the AS server.

Have you tried running regsvr32 on the msmddo80.dll file in the C:
\Program Files\Common Files\Microsoft Shared\DSO folder?

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.