Solved

ADO Error Message from crystal reports

Posted on 2004-09-21
5
3,688 Views
Last Modified: 2012-06-27
I am trying to view a report from visual basic and i keep getting the following error.

Logon failed.
Details: ADO Error Code: 0x80004005
Source: OraOLEDB
Description: ORA-01005: Null password given; logon denied
Native Error: 1005

Im connecting to an oracle 9i database using the OraOLEDB provider.
I get this error from one main report and one sub report. But my other reports work fine using the same driver/provider.
0
Comment
Question by:oagunbiade
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 42

Expert Comment

by:frodoman
ID: 12112188
My first guess is that the problem reports use more than one table and you're only sending login info to the first table (meaning that the other reports that work are probably only using a single table).  You need to send login info for each table being used.

frodoman
0
 

Author Comment

by:oagunbiade
ID: 12112196
How do i do that?
0
 
LVL 42

Expert Comment

by:frodoman
ID: 12112237
What does your code look like now?  Probably you need something like:

crxSubreport.Database.Tables(2).SetLogOnInfo "Server", '"database", "uid", "pw"

Or you can write a For..Each Table loop as well.

frodoman
0
 

Author Comment

by:oagunbiade
ID: 12112460
Just tried that but im not getting a setlogoninfo method from the list of available methods. I am desinging the form from visual basic using the crystal viewer. see code below

Set RsGeoBreach = New Recordset
   
    With RsGeoBreach
        .Open "SELECT * FROM Geo_Breach", ConHistory, adOpenStatic
    End With
   
   
    Set rscompany = New Recordset
   
    With rscompany
        .Open "SELECT * FROM details", ConHistory, adOpenStatic
    End With
   
    Report.DiscardSavedData
   
    Report.Database.SetDataSource rscompany, 3, 2
    Report.Database.SetDataSource RsGeoBreach, 3, 1
   
    Screen.MousePointer = vbHourglass
    CRViewer1.ReportSource = Report
    CRViewer1.ViewReport
    Screen.MousePointer = vbDefault
0
 
LVL 42

Accepted Solution

by:
frodoman earned 250 total points
ID: 12112606
Didn't realize you were passing a dataset to the report.  I believe it's this you want instead:
   report.Database.Tables(0).SetDataSource(source)
   report.Database.Tables(1).SetDataSource(source)
   etc.

frodoman
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question