I have installed SQL Server 2012 Express on a Windows Server 2008 Machine. The name of the machine is \"THEMACHINE\". While installation, I set SQL Server 2012 as \"Default
Change Data Source=THEMACHINE to Data Source=THEMACHINE\SQLEXPRESS. Also check that the database service is running.