Crystal Report Prompted Database Login

Everything run well on Dev Machine.
Testing on client prompted Database Login
Tried entering the required information does not work, kept saying Login failed no matter what.

Tried on vb.net

objReport.SetDatabaseLogon("user", "pass")

still isn't going thru

on the rpt file i used connectionstring:

DRIVER={MySQL ODBC 5.1 Driver};DATABASE=mydb;OPTION=3;SERVER=myServer;UID=myUser;PWD=myPassword



airvectorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mlmccCommented:
Does the test have the same database and same connection string?

mlmcc
0
airvectorAuthor Commented:
Test was done using same Database, user, pass, server

vb.net used:

With crConnectionInfo
           .ServerName = "server"
           .DatabaseName = "db1"
           .UserID = "client"
           .Password = "pass"
End With

Crystal Report Document uses:
DRIVER={MySQL ODBC 5.1 Driver};DATABASE=mydb;OPTION=3;SERVER=myServer;UID=myUser;PWD=myPassword
0
mlmccCommented:
Are you changing the database as it appears since the last line has different values from the connection info.

mlmcc
0
Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

airvectorAuthor Commented:
this is my script that i tried

it works on Dev machine and not on the client
Dim CRViewer As New FormCrystalViewer
        Dim CRViewer As New FormCrystalViewer
        Dim objReport As New ReportDocument
 
        'Load Crystal Report File
        objReport.Load(My.Settings.CR_PATH & "CRLateOrders.rpt")
 
        Dim crTableLogonInfos As New TableLogOnInfos
        Dim crTableLogonInfo As New TableLogOnInfo
        Dim crConnectionInfo As New ConnectionInfo
        Dim crTables As Tables
        Dim crTable As Table
 
        With crConnectionInfo
            '.ServerName = "server"
            '.DatabaseName = "db"
            .UserID = "client"
            .Password = "pw"
        End With
 
        crTables = objReport.Database.Tables
 
        For Each crTable In crTables
            crTableLogonInfo = crTable.LogOnInfo
            crTableLogonInfo.ConnectionInfo = crConnectionInfo
            crTable.ApplyLogOnInfo(crTableLogonInfo)
        Next
 
       CRViewer.CRViewer.ReportSource = objReport
       CRViewer.Show()

Open in new window

0
mlmccCommented:
Did you install the database drivers on the client?

mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
airvectorAuthor Commented:
Totally forgot about that
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Crystal Reports

From novice to tech pro — start learning today.