Click here to Skip to main content
15,886,513 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello sir,
How to attach external database from sql server 2005 in our projects while making setup in c#.net(window application). Therefore it can run on another PC.

Solve my problem

I am waiting for your answer...
Posted

1 solution

first of all your question is not clear

as much i have understood your question, first solution is to take backup of your database using management studio/programatically and restore it in sql server of client's pc .

Alternatively,
if you are asking about how to make your database to install automatically in client's pc when you install the software then you should use the compact edition not the sql server.

http://stackoverflow.com/questions/9818169/basic-start-with-visual-studio-c-sharp-and-sql-compact-connect-select-insert[^]
 
Share this answer
 
Comments
keyur_raval 16-Jul-13 1:36am    
No sir, I want make setup in c# window application..I have already makes external database using sqlserver 2005 but how can attach this mdf file in my project while making setup(.exe)..That's the problem......

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