Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Cube File Connection string ?

Cube File Connection string ?

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studiocomhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • _ Offline
    _ Offline
    _mubashir
    wrote on last edited by
    #1

    Hello All, I am working in Visual Studio 2003. I want to access local cube (.cub) file with ADODB object. How is this possible? I am using the following code, but it doesnt seems to work Dim cnActive As New ADODB.Connection Dim rs As ADODB.Recordset cnActive = New ADODB.Connection Try cnActive.Open("provider=msolap;Data Source=c:\temp\mycube.cub;", "", ",0) rs = cnActive.OpenSchema(ADODB.SchemaEnum.adSchemaCatalogs) Catch ex As Exception sError = ex.Message Exit Sub End Try The error is "The operation has failed because of an error in the COM component - unknown error c:\temp\mycube.cub Access Denied. ". I have given full access to this folder but no use. Any ideas? thanx Mubashir

    Every job is a self portrait of the person who did it.

    V 1 Reply Last reply
    0
    • _ _mubashir

      Hello All, I am working in Visual Studio 2003. I want to access local cube (.cub) file with ADODB object. How is this possible? I am using the following code, but it doesnt seems to work Dim cnActive As New ADODB.Connection Dim rs As ADODB.Recordset cnActive = New ADODB.Connection Try cnActive.Open("provider=msolap;Data Source=c:\temp\mycube.cub;", "", ",0) rs = cnActive.OpenSchema(ADODB.SchemaEnum.adSchemaCatalogs) Catch ex As Exception sError = ex.Message Exit Sub End Try The error is "The operation has failed because of an error in the COM component - unknown error c:\temp\mycube.cub Access Denied. ". I have given full access to this folder but no use. Any ideas? thanx Mubashir

      Every job is a self portrait of the person who did it.

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      See this example: http://sqljunkies.com/WebLog/mosha/archive/2006/03/08/local_cube_password.aspx[^]

      Vasudevan Deepak Kumar Personal Homepage Tech Gossips

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups