Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# WinForm
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 10-Mar-13 22:33pm
Rate this: bad
good
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.
 

cheers,
Marco Bertschi
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 565
1 Maciej Los 359
2 Kornfeld Eliyahu Peter 309
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,303
1 DamithSL 4,764
2 Maciej Los 4,306
3 Kornfeld Eliyahu Peter 3,914
4 Sergey Alexandrovich Kryukov 3,538


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2014
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