Connecting to a SQL LocalDb instance
If you haven’t heard, one of the things that is new in Visual Studio 2012 is a new version of SQL Express for local development. So when you are editing a SQL script and you need to connect to a server, the server name is no longer .SQLEXPRESS. This means that if you’re working in a .sql file and you’re prompted to enter a server name to connect to, you might be stuck.
I wasn’t able to quickly find this information out with a web search, so here it is once and for all: