Click here to Skip to main content
16,018,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all,
I have a scenario where I'm creating a windows application that can be installed on the client machine. The application will take the data from the client and should append it in a .bak file present locally on the client machine(.bak file should be created while setup file is executed on client machine), later the .bak file will be updated in the main database server manually.....
My question is, how to create a .bak file or .mdf(any of them will work) and include it in the setup file.
also, is it mandatory that the client machine should have database server instance installed on it??
am using SQL server 2008 and Visual Studio 2010, C#.


any help is appreciated.
Posted
Comments
Rana Zarour 18-Jan-14 9:41am    
have you try to connect to local data base file when you create your connection i think that this will solve your problem

1 solution

Yes, obvioulsly, your bak file is useless without SQL Server installed. SQL Server compact edition solves all these issues for smaller DB designs. Otherwise, you need people to install and configure SQL Server, and then configure a connection string in your app. I've done this, I just defaulted to a localhost connection on the default instance, and shipped scripts to create/populate my DB, not a .bak file.
 
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