Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Updating database using ClickOnce
 

Updating database using ClickOnce

I have an application setup using ClickOnce that uses a local SQL Express on the User's machine.

Changes possible to the SQL Express cache on the local machine -

1) Data changes

2) Structural changes - in terms of table redesign, column rename, etc.

What is the best way to deploy data updates using ClickOnce and the best way to apply structural changes to the database using ClickOnce ?

I know that I can do this in the application startup, check for certain types of files received from the server and act accordingly. Any other approach that you can think of ?

Any samples/pointers will be useful.

- Mav.

VodooMaverick  Monday, January 16, 2006 11:24 PM

You have two options.

1. You can make a custom bootstrapper and always have users run the "setup.exe" program to start your application. You could rename the bootstrapper exe to something prettier e.g. MyApplication.exe and always have them run the app through a shortcut.

2. Reference the SMO libraries and just add schema maintenence code to the startup of the application.

Patrick Greene  Tuesday, January 17, 2006 2:54 PM

You have two options.

1. You can make a custom bootstrapper and always have users run the "setup.exe" program to start your application. You could rename the bootstrapper exe to something prettier e.g. MyApplication.exe and always have them run the app through a shortcut.

2. Reference the SMO libraries and just add schema maintenence code to the startup of the application.

Patrick Greene  Tuesday, January 17, 2006 2:54 PM

Hi Patrick,

I have been reading your topic.

I am deploying an application through ClickOnce. Except for some Vista-machine it works OK.

At this moment we are testing the application with 50 live-testers. Sometimes I have to change the database-tables (adding a nerw table of modifying an exsting one).

Problem for the testers is, that with every change I make in de Express Database, the lose their data.

Prior to .Net I have been working with Windev, and it worked with an automated Database-modification.

Could you explaine the second option you mentioned a little bit more??

Would be very nice.

Greetings

Hans

Pike  Saturday, January 19, 2008 5:33 PM

You can use google to search for other answers

Custom Search

More Threads

• Conditional installation of 64-bit crystal reports after detecing CPU
• Carat Symbol Removed During Install
• getting a different name for the manifest file
• best place to store user information
• Complie Setup with framework 2.0 in VS2008
• .net prerequisite check
• Building the application package.
• Creating a Desktop Shortcut for the application, enabling dropping of files onto it.
• Setup and Deployment project - Special Folders default to Program Files
• Click once deployment asking for interop.word