Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I just finished coding my first app with wpf taking tables from sql server using link to sql.. Now I've created a setup but unfortunatly it is runing only on my computer, when I run it in another pc which not having Visual studio, neither sql server it is not working.

Any body segust me how can I create an independet setup of this app? I mean maybe with a local database which is installed with my app. witout using sql server in the client pc. I found in some links that is possible with sql server compact but really have no idea how to make it..

I really need help.. Thanks in advance!!!
Posted
Comments
[no name] 4-Aug-13 13:26pm    
I you stick with using SQL Server then SQL Server must be installed on the target computer as well.
PrissySC 4-Aug-13 14:27pm    
You can change the connection string to local db with link 2 sql classes. I build with server on my own machine and add local db to solution. I point to local db in a setting that I use as the connection string in code.
Moh163 4-Aug-13 22:06pm    
Thank you both for answering.
PrissySC> I am trying to create a local db "MyDB.sdf"
It gives me to choose a Database Model:
1.Dataset
2.Entity Data Model

what should I choose? and how can I change the connection string to local db with link to sql classes?

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