dbTalk Databases Forums  

OLAP Connection Strings?

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


Discuss OLAP Connection Strings? in the microsoft.public.sqlserver.olap forum.



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

Default OLAP Connection Strings? - 07-20-2004 , 07:22 AM






I'm trying to connect to an OLAP database with ADO. The following works:

"Provider=MSOLAP;Data Source=localhost;Initial Catalog=FoodMart 2000"

The following (that reference another system) fail with
System.Runtime.InteropServices.COMException, "Unspecified error":

"Provider=MSOLAP;Data Source=192.168.128.53;Initial Catalog=FoodMart 2000"
"Provider=MSOLAP;Data Source=192.168.128.53;Integrated
Security=SSPI;Initial Catalog=FoodMart 2000"
"Provider=MSOLAP;Data Source=192.168.128.53;User
Id=sa;Password=xxxx;Initial Catalog=FoodMart 2000"

The other system produces the exact same symptoms. It can connect
locally but not remotely. This implies that the problem isn't the system.

I've tried non .NET code; same result.
I've tried a provider of MSOLAP.2; same result.

Any ideas? This seems so basic. I'm surprised I don't see other users
hitting this issue.

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

Default OLAP Connection Strings? - 07-20-2004 , 12:50 PM






hi,

try using this

Set cat = Server.CreateObject("ADOMD.Catalog")
Set cst = Server.CreateObject("ADOMD.CellSet")

OLAPServerName = "computer name"
cat.ActiveConnection = "Data Source=" &
OLAPServerName & ";Initial Catalog=foodmart
2000;Provider=msolap;"



This may help u to solve ur problem.

bye,


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.