Click here to Skip to main content
15,887,340 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi I created a project by visual studio and then I created a setup for my project that have use db file too but I created database with sql express in visual studio but after making setup file when I want to install it in another computer in does not work in it want db files I copy db file in the folder but still it does not work
I use linq to sql
I dont know how attache my .mdf and .ldf file in target computer after install setup ant its prerequired
Posted
Updated 14-Jul-14 14:12pm
v2
Comments
Sergey Alexandrovich Kryukov 14-Jul-14 18:35pm    
All right, you screwed up something, but how can we know what? Due to hot weather, my access to your hard drive is somewhat limited.
—SA
[no name] 14-Jul-14 18:39pm    
You probably do not have SQL Server installed on the target computer. But "does not work" tell us nothing about your problem so it's just a guess.
sadegh_sh 14-Jul-14 20:10pm    
I istalled sql express 2008 in target computer but I dont know how attach my db file to it?
[no name] 14-Jul-14 20:15pm    
Go to www.connectionstrings.com and learn about connection strings.
Sergey Alexandrovich Kryukov 14-Jul-14 19:11pm    
You can simply claim SQL server as a prerequisite. This is perhaps the best way. This way, the users can use whatever license they have.
—SA

1 solution

May be the following link is useful to you.

Deploy SQL Server databases easily with an Installer class[^]
 
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