dbTalk Databases Forums  

Problem in connection to OLAP Database using asp pages

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


Discuss Problem in connection to OLAP Database using asp pages in the microsoft.public.sqlserver.olap forum.



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

Default Problem in connection to OLAP Database using asp pages - 09-29-2005 , 06:23 AM






Hello,

Using the following code, I am unable to connect to any OLAP database other
than "FoodMart 2000" which comes by default with the Analysis server. I am
using a simple .asp page for the same.
Interestingly the same code works fine when I am connecting through VB
application forms for all the database. There are no users or roles
restriction configured on the OLAP Database.
Has anyone come across this kind of problem.
Please help

Code --
<%
szServer = "10.1.11.111"
szDatabase = "Tutorial"

' create and open ADODB Connection
set C = Server.CreateObject("ADODB.Connection")
C.Provider = "msolap.2"
C.Open "provider=msolap.2;data source=" & szServer & ";user
id=;password=;Connect timeout=120;Initial catalog=" & szDatabase
Response.Write ("Connection done succesfully")

%>


Thank you

Shirish


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

Default Re: Problem in connection to OLAP Database using asp pages - 09-29-2005 , 07:25 PM






Quote:
There are no users or roles
restriction configured on the OLAP Database.
Has anyone come across this kind of problem.
When you say there are no restrictions, I assume you mean that the roles
for you database are the same as the role setup in Foodmart that gives
access to everyone.

Have you tried running the VB form application on the server? Your issue
could be a problem with permissions, or it could be a problem with the
olap provider.

Running the VB app on the server should test that the provider on the
server works OK. If it doesn't you might need to look at re-installing
PTS on the server.

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


Reply With Quote
  #3  
Old   
sefe dery
 
Posts: n/a

Default Re: Problem in connection to OLAP Database using asp pages - 09-30-2005 , 02:43 PM



Shirish Nair schrieb:
Quote:
Hello,

Using the following code, I am unable to connect to any OLAP database other
than "FoodMart 2000" which comes by default with the Analysis server. I am
using a simple .asp page for the same.
Interestingly the same code works fine when I am connecting through VB
application forms for all the database. There are no users or roles
restriction configured on the OLAP Database.
Has anyone come across this kind of problem.
Please help

Code --
%
szServer = "10.1.11.111"
szDatabase = "Tutorial"

' create and open ADODB Connection
set C = Server.CreateObject("ADODB.Connection")
C.Provider = "msolap.2"
C.Open "provider=msolap.2;data source=" & szServer & ";user
id=;password=;Connect timeout=120;Initial catalog=" & szDatabase
Response.Write ("Connection done succesfully")

%


Thank you

Shirish

I think you have a permission problem.
you should :
1.)right click to your cube -->manage roles
2.)new
3.)rolename: role_everyone
4.)ADD:everybody(all users)
5.)cubes: check all
6.)thats all

if this doesnt work for your cube then there are another problem.

best regards
Sefer


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

Default Re: Problem in connection to OLAP Database using asp pages - 09-30-2005 , 05:03 PM




Quote:
I think you have a permission problem.
you should :
1.)right click to your cube -->manage roles
2.)new
3.)rolename: role_everyone
4.)ADD:everybody(all users)
5.)cubes: check all
6.)thats all

if this doesnt work for your cube then there are another problem.

best regards
Sefer

Just adding some extra info on security with Web Applications...

Typically, with ASP/ASP.NET applications, the user either:

1) IUSR_<machine name> for traditional ASP
2) ASPNET for ASP.NET apps on IIS 5 and below
3) NETWORK SERVICE for ASP.NET on IIS6 (Win 2003)

None of these are not usually in the Everyone group and have to be added
to the Analysis Services Roles as individual users.

(Of course it is also possible to override the default user and put an a
domain user, but this does decrease the overall security of the web
server)

However Shirish said that he could access Foodmart and I am assuming
that he has set up the roles the same in both databases. This leads me
to believe that he may have a problem with his Olap provider setup on
the web server. You can access Foodmart with both the v7 driver and the
v8 driver, typically databases that are created from scratch in AS2k can
only be access using the v8 driver. (I think this may be because
Foodmart was migrated from Olap Service 7.0)

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
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.