How can I publish my website in Webmatrix that uses a database, using Web Deploy?
My connection string has the configuraions of my local database. Should I change the configurations before publish using the webmatrix publisher?
Is there any best practice to avoid the need to change the connection in web config in all publish times?
Please follow this article
http://www.microsoft.com/web/post/web-development-101-part-9-deploying-your-site
You need to set the connectionstring of your server database instead of your local database on your computer.
Take a look on Using different Web.config in development and production environment to set configuration for both enviornment dev and production.