Solved

ADO Error Message from crystal reports

Posted on 2004-09-21
5
3,636 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

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. …
Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

738 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