I create wpf desktop application with sql server 2008 database?
The database is stored on Sqlexpress in my local machine.
Could any one tell how could I deploy the database on the client machine ?
The database should be use locally on one user only machine
Thanks
If your database files (data/log) are currently attached to your database server all you have to do is to deattach and pack them within your application setup (using your setup project properties, settings, etc.). Your setup program should be intelligent enough to detect if there is any sqlexpress instance present on the target computer if none then install a fresh instance of sqlexpress and either attach the files to the instance using a script or just using your connection string to force a dynamic instance to attach them for you when the application is in use.