Solved

ADO Error Message from crystal reports

Posted on 2004-09-21
5
3,592 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
  • 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 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