Click here to Skip to main content
13,149,756 members (57,158 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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 10-Mar-13 21:33pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

Marco Bertschi
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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..


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170924.2 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100