I have developed an application in Visual Studio 2012 with a SQL Server 2012 database. When I try to publish the application to test it, it works correctly on my machine (that includes the database in a SQL Server data folder), but when I move that published app to another machine it doesn't work.
I want to know the simplest way to deploy the project together with its database. I have seen a solution to integrate the SQL database with my application is to use a localdb but I don't understand the steps to use it. I need all the steps to deploy an application with a SQL Server 2012 database in order to install the application on another PC without having to install SQL Server 2012 on that PC.
Your app doesn't work on the other machine because you deployed it with the same configuration on your local machine without a database.
If you don't have SQL server on the machine you can use SQL Server Express (it's installed by default with Visual Studio unless you explicitly tell it not to do) and update
web.config:Deploy database to server and change the connection string