Please how do I deploy C# application with .mdf database? Thanks.
DEploy C# application with database (.mdf)
Page 1 of 14 Replies - 2783 Views - Last Post: 05 November 2012 - 03:30 PM
Replies To: DEploy C# application with database (.mdf)
#3
Re: DEploy C# application with database (.mdf)
Posted 01 June 2012 - 05:32 AM
negligible, on 01 June 2012 - 08:24 AM, said:
Try this, it's a well documented feature.
Do you have the application already or are you looking to develop it yourself?
Do you have the application already or are you looking to develop it yourself?
1. He's talking about an .mdf(SQL Server) file, not an .mdb(Access) file.
2. He's not asking how to connect. He's asking how to deploy the database with his application.
ken2010, on 01 June 2012 - 06:20 AM, said:
Please how do I deploy C# application with .mdf database? Thanks.
The easy answer is, include the file into the project(Add --> Existing Item..). If you are using an installer, you will also need to add it to the installer(the same steps).
The harder answer is, why are you deploying a full blown SQL Server database with your application? Does multiple instances of your application run and need to share the same data? Or does your application run locally and only need the data for itself?
If it's the latter, you should look into using a SQL CE database(.sdf) file. SQL CE databases don't require the installation of SQL Server. You can add a SQL CE database to a project by adding the "Local Database" item(Add --> New Item.. --> Local Database).
#4
Re: DEploy C# application with database (.mdf)
Posted 01 June 2012 - 07:14 AM
Thanks guys! I have found a way to fix it. i really appreciate you professional contributions
#5
Re: DEploy C# application with database (.mdf)
Posted 05 November 2012 - 03:30 PM
ken2010, on 01 June 2012 - 07:14 AM, said:
Thanks guys! I have found a way to fix it. i really appreciate you professional contributions
Could you please tell me how you did it ? I am an IT student and I'm working on my Graduation Project for two months and finding difficulties in this task, please help me my time is wasted and I'm confused by switching between different database applications
Thank you
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote



|