Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
hi friends, i have developed a software with C# and sqlserver 2008. i finished developing of this software and i have problem in installing it. i installed sqlexpress in customer computer and i do not know where i place database(mdf, ldf) files. and what connection string i must use.

thank you.
Posted
Updated 5-Apr-14 3:10am
v2

1 solution

Well it depends
1. if you want to give your database access to your client then you can attach database file .bak or throught .mdf file in installed SQL Express on client computer simply
and change the path in web.config. (the connection String should be there as you have done development on it)
2. host you application in IIS server on client computer, again it depends whether you want to give client access to whole code.

be more specific with your requirements so that members can help you accordingly.
 
Share this answer
 
Comments
_Starbug_ 5-Apr-14 9:21am    
thank you. but i am developing windows application not a web application. my problem is this.

1.what connection string i must use?
2.where i must place mdf and ldf files of database
3.what other thing i must do
Schatak 5-Apr-14 9:26am    
you want to host everything on Client's computer?
_Starbug_ 5-Apr-14 9:34am    
i do not know what you mean but i want to this software can run in customer computer and user(customer) can access to database(every thing created in software) like insert update and delete commands in database file.
Schatak 5-Apr-14 11:14am    
Okay in that case make .msi or .exe of you project. you can also get the files from release folder eg .exe file or .dll files, there is also files like .dll.config. copy those files and place it customer computer.
In sql , the same way as mentioned above, create a .bak file and restore it.

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