Solved

ADO Error Message from crystal reports

Posted on 2004-09-21
5
3,488 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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. …
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 …
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

759 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now