Hi All
please Help me
I Develope windows Applcation program by c# 2010
i use LINQ to SQL class to connect data base by SQL 2005
but When i make setup project , database file not exist in
project
and can't know how i do database file created in user PC when
setup my exe file and how the application connect with
database file when run at user PC

Zaid Ansari154 reputationPosted Jan 23, 2015, 5:15 PM EST
SQL data base out put 2 .MDF and .log file understand brother
Because SQL server start services
Best solution
SQLconnection con new sql connection (data source=. ........)
Than connection read karo text file se to tum change kar sakte ho client site pe woh bhi run time pe OK.
Zaid Ansari154 reputationPosted Jan 23, 2015, 5:17 PM EST
Using system.io
Thanks
Anoop Kumar SharmaRank #127 · 17.4K reputationPosted Jan 23, 2015, 5:23 PM EST
Method 1:
http://www.msdotnet.co.in/2013/07/how-to-create-setup-fileexe-with.html#.VCLWAvmSy64
http://www.youtube.com/watch?v=YqvgerKYtOg
Method 2:
http://www.rajneeshverma.com/post/2012/08/16/Setup-and-Deployment-of-Windows-Application-with-SQL-Server-Database-using-Visual-Studio-2010.aspx
Hope this will help you.
..................................................................................................................................
If this post is useful then mark it as "Accepted Answer"