Click here to Skip to main content
15,889,335 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I've deployed my vb application on a client's machine. But when he executes the crystal report section it requests for database login. I also remember I didn't use any userid or password for the database.

I used ms access as the database (OLEDB).

Please help me out.

What I have tried:

I've tried all what I could and have been searching online for the past 1week now.

But I don't get any solution to this problem

So please help me out
Posted
Updated 29-May-16 15:28pm

1 solution

Questions you need to ask yourself and answer

- Are you deploying the MS Access database to the client's machine or was that only for your testing ?
- Is the production data in another database - eg MYSQL, MS SQL Server etc

I would search your Crystal report setup and/or app.config (for example) and look for the Connection String that says how to connect to MS Access - then based on your answers to the 'questions', either

a) Deploy the MS Access database to the Client's machine OR
b) Change the Connection String to connect to the correct/production database - you may wish to create a 'Crystal' Account with read-only permissions and have those account details in the Connection String
 
Share this answer
 
Comments
Richmond Boateng 1-Jun-16 12:33pm    
I don't get your solution please. Kindly explain it further.
Garth J Lancaster 1-Jun-16 21:15pm    
since I'm not a Crystal expert, I suggest you Google something like "Crystal Report Connection String" and find out where & what that is in your project/code - once you find that you can then change it to whatever is required - since you havnt answered my question on what database/how are you deploying a database to the client machine, I cant tell you any more
Richmond Boateng 2-Jun-16 18:42pm    
Please help me out because I've tried a whole lot of connection string. However, I've searched online for the past weeks now, I've tried all helps at various forums but they are all not giving me the solution to my problems ☹️
Garth J Lancaster 2-Jun-16 19:24pm    
Ive tried to help you - but twice you havnt told me what database is being used on your client's computer / how its set up, as I have asked - since I cannot read your mind, see your computer, or the client computer, these are pretty mandatory details I dont have
Richmond Boateng 4-Jun-16 5:34am    
The database is access and I definitely know that there is no password on the database file. But when I try to refresh the report on client's machine then it asks for a password.

I used advance installer to package the Visual Basic application

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900