That error means that there is no SQL Server running where you have specified that it would be.
That could be because SQL Server is not running, it could be because you have a typo, for example, the instance name is not SQL2012. There could be firewalls etc.
Since we don't know your environment and nor do we know why you expect the operation to succeed, we can't really do better than to point you to a troubleshooter. Here is one: https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/troubleshoot-connecting-to-the-sql-server-database-engine?view=sql-server-2017