Re: MS SQL Server OLAP data access with oledb

From: Frans Bouma [C# MVP] (perseus.usenetNOSPAM_at_xs4all.nl)
Date: 02/15/05


Date: Tue, 15 Feb 2005 10:20:29 +0100

vla75 wrote:
> Hi there,
> I made a webpage in asp.NET that access data trough Oledb and everything
> works fine if the webpage and the Olap database are on one and the same
> computer. When I moved the OLAP Database to a different computer our Database
> Server I get an error when I try to open the OledbConnection. I am accessing
> the data trough a connection string like this:
> string myConnStr="Provider=msolap.2;Data Source=192.168.0.10;Initial
> Catalog=VendorReport;";
> The ip address 192.168.0.10 is for our database server.

        1) if you get an error, please state this error. We can't help you if
we don't know what's wrong. Any error info can be helpful.
        2) you don't specify any username/password. This means you've used
integrated security. While this might work on one system, the user
you're using with asp.net is likely ASPNET. This is a local user, not a
domain user. This means that on the system your database is on now,
ASPNET isn't known. Either use a domain user for the website and for
logging on at the database (not recommended, a website shouldn't be in a
domain together with the db server) or use sql server security (i.e.:
UID=foo;PWD=bar; )

                Frans

-- 
------------------------------------------------------------------------
Get LLBLGen Pro, productive O/R mapping for .NET: http://www.llblgen.com
My .NET blog: http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------


Relevant Pages

  • Re: Install MSDE w/ MSDE Depl.Toolkit. What permissions when using Win Auth?
    ... However by using Windows groups, ... adding a domain user to the group each time a new user requires access ... understand it they should have access to the MSDE database. ... >> server that I want to distribute. ...
    (microsoft.public.sqlserver.msde)
  • Re: Sharepoint migration "IIS application pool username is invalid
    ... The IIS server is part of the domain, and i have made the domain user local ... administrator as well as network administrator for trouble shot. ... > you should also change the "Configuration Database Administration Account" ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Sharepoint Migration issues
    ... the domain user is in the admistrators group on the sql server. ... I use the domain user to log into the WSS server. ... The current server hosts the WSS site and also the sql database. ...
    (microsoft.public.sharepoint.windowsservices)
  • Create SharePoint Portal failed.
    ... One mentioned ensuring that SQL Server uses a case ... 13:55:40 Service database server is 'USDC-JOHRIV'. ... Update dbo.propertylist set DisplayName = N'Last name' ...
    (microsoft.public.sharepoint.portalserver)
  • Re: ADO Connection Timeout
    ... to the central server, but you are willing to live with periods where it ... i.e. a local database or even a text file. ... to function until the connection can be restored to the server. ...
    (microsoft.public.data.ado)