I want to create a Windows Application in VS 2012 with database in MS SQL server 2008. How can I create a setup which creates this database?
I don't want to install SQL Server on the target PC. I just want to install my application and create the database. How can I do this?
I'd use WindowsInstallerXML (WiX) to create the installation package; with WiX there is native support to handle database creation and hopefully this should be suitable to help you with what you need.
However, WiX can be incredibly difficult to just pick up and learn (especially if you need help with English) so this might not be the best option for you.