3
Answers

How To add database file with exe file windows form C#2010

Ramadan Elmahdy

Ramadan Elmahdy

10y
1.1k
1
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
Answers (3)
0
Anoop Kumar Sharma

Anoop Kumar Sharma

NA 12.7k 5.6m 10y
Check these links:
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"
0
Zaid Ansari

Zaid Ansari

NA 335 30.6k 10y
Sql connection string ko text file me dalo aur file ko access karo and line by line read karo to problem nhi ho using namespaces
Using system.io



Thanks
0
Zaid Ansari

Zaid Ansari

NA 335 30.6k 10y
Hi friends... Good morning nice question brother

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.