Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 80004005 : OLE DB or ODBC error

Status
Not open for further replies.

jepe666

Programmer
Apr 17, 2008
36
0
0
ID
My code like :
strProvider = "PROVIDER=MSOLAP.3"
strLocation = "LOCATION=c:\DocumentCube.cub"
strSourceDSN = "Data Source=localhost;Initial Catalog=AdventureWorksDW;Integrated Security=SSPI"

Set cn = New ADODB.Connection
s = strProvider & ";" & strLocation & ";" & strSourceDSN & ";" & strCreateCube & ";" & strInsertInto & ";"
Screen.MousePointer = vbHourglass
cn.Open s

Error in the line : cn.Open s

I don't know why is it error?
 
I already found out what the incorrect is..
But have another problem..
I got error : cannot conenct to the datasource 'cannot connect to server localhost'.The server is either not started or too busy.
I check MSSQLServer is running and MSSQLOLAP is running too..
Now,can help me with this problem?

Thanks for advance..

rgds JP.
 
Ok. So the first problem was that you didn't understand what values needed to be in the connectionstring. The next problem is that you can't connect to your local host server. You'll need to work with your administrator to find out why. Just because it's running doesn't mean the server will automatically let you connect to it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top