Crystal Reports MySQL RunTime Connection

A

Atif

Hi All

My problem is not related with this group BUT i have got a clue from
here that's why i am posting this question over here.

I am using Crystal Reports 9 with MySQL and SQL Server.
Situation: User can select anyone of these databases and the Report
should work fine[which is not the case]

I am using following connection strings to connect with databases

[SQL Server]
"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=PizzaHut;Data Source=(local)"

[MySQL]
"Provider=MSDASQL.1;Extended Properties=DRIVER={MySQL ODBC 3.51
Driver};SERVER=localhost;DATABASE=DBName;UID=root;PWD=;OPTION=3"

These connection strings are working fine with my application but not
with Crystal Reports.

i have created the Report with SQL Server and it worked fine but when
i tried to connect with MySQL at runtime using the above connection
string, it gave me the "login failure" error while user ROOT have all
permisions, but when i used following connection string

Report.DiscardSavedData
Report.Databases.Tables(1).ConnectBufferString =
"Provider=MySQLProv;SERVER=localhost;DB=DBName;UID=root;PWD=;"

[Refrence: http://groups.google.com/groups?hl=...=%22Crystal+Reports%22+mysql+%22at+runtime%22]

it got connected but not showing any result i.e. a blank report.

WHY?


Thanks
Regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,229
Latest member
GloryAngul

Latest Threads

Top