Re: OWC10 PivotTable: how to create connection string that specifies UN+PW for OLAP

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Raj More (rm_at_tek.com)
Date: 04/27/04


Date: Tue, 27 Apr 2004 11:09:21 -0400

Sergio,

Are you able to connect from the client machine to the server using the
Analysis Manager? Do you have network connectivity to the server?

Raj More

"Sergio A. Lagunes C." <slacas75@hotmail.com> wrote in message
news:O$WMG66KEHA.3704@TK2MSFTNGP11.phx.gbl...
> Hi
>
> I have similar error, the client machine display error message inside the
> component:
> Can not connect to data
>
> I try your example, but continue with the same error message.
>
> Can't you help me??
>
> Thanks
>
>
> "Raj More" <rm@tek.com> escribió en el mensaje
> news:OX3AYpXKEHA.624@TK2MSFTNGP11.phx.gbl...
> > Zhoemar,
> >
> > The one thing I have found is that SQL Server and Analysis server, both
> must
> > be installed on the host machine that you are connecting to.
> >
> > Create a Login in SQL Server that has access to the Master database, and
> use
> > that login in your connection string. I use connection strings that
look
> > like this:
> >
> > Me.AxPivotControl.ConnectionString="Provider=MSOLAP.2;Persist Security
> > Info=False;Data Source=__MYSERVERNAME;Location=master;Initial
> > Catalog=__MYDATABASENAME;Client Cache Size=25;Auto Synch
Period=10000;User
> > ID=__MYUSERNAME;Password=__MYMYPASSWORD"
> >
> > Me.AxPivotControl.DataMember="__MYCUBENAME"
> >
> > It works for me.
> >
> > Raj More.
> >
> > "zhoemar" <zhoemar@telkom.net> wrote in message
> > news:30f101c428e2$dbc88cd0$a401280a@phx.gbl...
> > > I am creating an ASP page in which an OWC Pivot Table is
> > > embedded that references an OLAP cube. I am a newbie with
> > > this control, and borrowed most of the code from the MS
> > > Office Web Components Toolpack.
> > >
> > > What I have seems to always pass the Windows username &
> > > Password of the user to the OLAP server for authentication
> > > (Data Source Logon dialog box). What I want is to specify
> > > a username & password is the code such that all users
> > > connect using the same one.
> > >
> > > (By the way, the reason for this is that the page will be
> > > deployed on a company intranet that is accessible across
> > > many NT domains, and I can't figure any other way to work
> > > around the fact that the MS Analysis server (2000) can
> > > only recognise accounts in the domain it is in. If anyone
> > > knows an answer to this, I want to know!)
> > >
> > > My connection string is set up like this:
> > >
> > > pt.ConnectionString = "Provider=MSOLAP.2;Persist Security
> > > Info=True;Data Source= <%=sServer %>
> > > Username=OWC;Password=XXXXX;Initial Catalog=<%=sDatabase %
> > > >"
> > > pt.DataMember = "<%= sCube %>"
> > >
> > > Why doesn't the Username=OWC;Password=XXXXX; part work?
> >
> >
>
>



Relevant Pages

  • Re: Communication Link Failure Error
    ... On disconnection from the network, in my code I changed the connection ... string to use SQLOLEDB and sent a SQL query to SQL server which failed as ... unplug the network cable from the client machine and put the cable ...
    (microsoft.public.data.ado)
  • Re: Outgoing POP3 email missing/lost/not received
    ... Funny thing is that I have had this ISP for 8 years and it has always been ... It looks like when you last ran CEICW, you set the ISP's mail server to: ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Cannot connect client to server 2003
    ... you need to reconfigure the IP schema of your SBS ... On the SBS 2003 Server open the Server Management console. ... On the Connection Type page, click Broadband, and then click Next. ... Alternate DNS server, type the IP addresses that are provided by your ISP ...
    (microsoft.public.windows.server.sbs)
  • Re: Outgoing POP3 email missing/lost/not received
    ... ISP's mail server instead of the domain name on the ... SUMMARY OF SETTINGS FOR CONFIGURE E-MAIL AND INTERNET ... Internet Connection Wizard. ... After the wizard completes, the following network connection ...
    (microsoft.public.windows.server.sbs)
  • Re: Networking Question - VLANs on SBS 2003 Premium SP1
    ... port on the old router so I now have a segregated WLAN. ... be sure you do not enable any DHCP server in internal network. ... On the Connection Type page, click Broadband, and then click Next. ... On the Network Connection, You must enable and configure the network ...
    (microsoft.public.windows.server.sbs)