dbTalk Databases Forums  

Need help on DSO.DataSource.

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


Discuss Need help on DSO.DataSource. in the microsoft.public.sqlserver.olap forum.



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

Default Need help on DSO.DataSource. - 11-25-2004 , 02:16 PM






Hi,

I am using DSO objects to access the analysis service. I added COM
object as reference, which is at my 'C:\Program Files\Common Files\
Microsoft Shared\DSO\msmddo80.dll' with version:8.0.0.795. I apply
SP3a for both SQL Server 2000 and Analysis Server. In my code, I am
trying to assign DSO.DataSource.ConnectionString, but the compiler
complaint it cannot find this field. Here is the code:

Module Module1

Sub Main()
Dim a As DSO.DataSource
a.ConnectionStirng = "blah blah"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
End Sub

End Module

Here is error message:

C:\test\ConsoleApplication1\Module1.vb(5): 'ConnectionStirng' is not a
member of 'DSO.DataSource'.


Any helps are apprecieted.

Thank you

Reply With Quote
  #2  
Old   
Jéjé
 
Posts: n/a

Default Re: Need help on DSO.DataSource. - 11-26-2004 , 07:28 AM






you have typed: ConnectionStiRng
and not ConnectionStRing


"John Sayor" <js_2004 (AT) mailcan (DOT) com> wrote

Quote:
Hi,

I am using DSO objects to access the analysis service. I added COM
object as reference, which is at my 'C:\Program Files\Common Files\
Microsoft Shared\DSO\msmddo80.dll' with version:8.0.0.795. I apply
SP3a for both SQL Server 2000 and Analysis Server. In my code, I am
trying to assign DSO.DataSource.ConnectionString, but the compiler
complaint it cannot find this field. Here is the code:

Module Module1

Sub Main()
Dim a As DSO.DataSource
a.ConnectionStirng = "blah blah"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
End Sub

End Module

Here is error message:

C:\test\ConsoleApplication1\Module1.vb(5): 'ConnectionStirng' is not a
member of 'DSO.DataSource'.


Any helps are apprecieted.

Thank you



Reply With Quote
  #3  
Old   
John Sayor
 
Posts: n/a

Default Re: Need help on DSO.DataSource. - 11-26-2004 , 09:44 AM



js_2004 (AT) mailcan (DOT) com (John Sayor) wrote in message news:<be541a84.0411251216.7b63880b (AT) posting (DOT) google.com>...
Quote:
Hi,

I am using DSO objects to access the analysis service. I added COM
object as reference, which is at my 'C:\Program Files\Common Files\
Microsoft Shared\DSO\msmddo80.dll' with version:8.0.0.795. I apply
SP3a for both SQL Server 2000 and Analysis Server. In my code, I am
trying to assign DSO.DataSource.ConnectionString, but the compiler
complaint it cannot find this field. Here is the code:

Module Module1

Sub Main()
Dim a As DSO.DataSource
a.ConnectionStirng = "blah blah"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
End Sub

End Module

Here is error message:

C:\test\ConsoleApplication1\Module1.vb(5): 'ConnectionStirng' is not a
member of 'DSO.DataSource'.


Any helps are apprecieted.

Thank you

Sorry, there is a typo. ConnectionStiring should be ConnectionString.
In Object broswer, the DSO.DataSource class only has there methods:

Clone(ByVal DSO._ICommon, [ByVal DSO.CloneOptions])
set_ConnectionString
set_Description
set_Name
set_Parent
_VtblGap7 _9()
get_CloseQuoateChar()
get_ConnectionString()
get_CustomProperties
get_Description()
get_IsReadOnly()
get_IsValid()
get_Name()
get_OpenQuoteChar()
get_Parent()
get_SupportedTxnDDL()
IsConnected
Update()


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.