Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii,
I had created a setup for my project which includes database.But when I installed that setup in my friends PC it gave an error regarding database.Is there any solution for this?
Posted

Yes - Most likely there was no database driver in your setup included or the database' connection options were set differently on your friends PC.

To resolve this issue you can either develop the database system with your app (watch out - redistributing database systems may cause licence infringment). Or, if your database is file-based you have to develop the file with your application including all the other stuff such as connectors etc.

If you need further clarification please post the error message and what kind of database from which manufacturer you are using.


cheers,
Marco Bertschi
 
Share this answer
 
Mate,

The error might be due to 2 reasons:

1) Your friend does not have SQL server installed in his machine.
2) Or, the connection string which you have in your project still points to your machine and database.

If the other machine does not have SQL server installed in it, you can download the free educational version and install it in that machine.

For resolution of 2nd reason, you can either change the connection string manually in his machine or you can have another form in your project which asks for the user's machine name, database name and on a button click creates the appropriate connection string.

Try it..Hope it helps..

-Anurag
 
Share this answer
 

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