Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have developed a C# windows application and I want to give it to the client along with the database backup file(.bak).
Can I include the .bak file in the exe so that it will be exported to the database automatically without having it externally and exported manually??
Or Do I need to provide the .bak file seperately? In that case client will be knowing what are all there in the database.
So please suggest me how can I include .bak file with exe.?

Thanks in Advance.......
Posted
Comments
Ron Beyer 17-Jan-14 11:07am    
This isn't clear, you want to give the client the database schema only, or the entire database with data? What database? SQL Server? MySQL, SQLite?
Member 10220147 17-Jan-14 11:58am    
Hello Ron Beyer,
Thanks for your prompt reply..

The database is SQL Server. I need to give the database with data.SO I created a .bak file.
I have 2 tables with some data in them in SQL server.
I have to give the client the developed C# windows application (.exe) and also this .bak file.
Client should not know what is there in the .bak file. So somehow I want to hide it from client to be precise.
Can I include that .bak file while generating in exe so that it will be exported automatically without having to export it seperately? Or else suggest me any other way if exists...
Thanks..
Tomas Takac 17-Jan-14 17:29pm    
What will happen with the backup at client side? You can include the bak file as resource in your exe but I don't think that's the way you wanna go.
Member 10220147 20-Jan-14 2:28am    
Hi Tomas...
Yeah I have already developed my windows application to work with SQL server.

The database is SQL Server. I need to give the database with data.SO I created a .bak file.
I have 2 tables with some data in them in SQL server.
I have to give the client the developed C# windows application (.exe) and also this .bak file.
Client should not know what is there in the .bak file. So somehow I want to hide it from client to be precise.
Can I include that .bak file while generating in exe so that it will be exported automatically without having to export it seperately? Or else suggest me any other way if exists...
Thanks..
Ziee-M 23-Jan-14 8:59am    
Hi, how are you going to give the app to your client? If you are going to create an installer, then the client won't notice the database(you can save it in a diffrent location then the app setup directory)!

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