Tag: ASP.Net

SQL Server – Aliasing an Instance

As you may know… I’m a software developer. As with most developers, I want things to work… with minimal intervention.

So, when I started a recent contract (.NET Core Web development), they were using a Git repository… I grabbed the latest, restored the DB backup to my local “full install” of SQL Server…

AND BAM! It didn’t work. Why? The current .config files all pointed to a .\SQLExpress DB. Yes… that’s a named instanced on localhost.

Well, I didn’t want to reinstall SQL Server (which is the only way to change the Instance name). And… I didn’t want to have to edit several .config files each time I pulled the latest changes. And for various reasons, the client didn’t want to switch over to using a “connections.config” file to remove the connection strings from the web.configs. (That would have been best, since I could then just git ignore the connections file, and continue working.)

After a bunch of searching, I finally found someone else who had done what I wanted.

Here is a link to the article “How to Configure a SQL Server Alias for a Named Instance on a Development Machine“. For me, I had to make sure I did both 32 bit and 64 bit aliasing.

TADA! I can now leave the .config files alone, and my local install of the DB (that uses the MSSQLServer instance naming) happily works with a connection string pointing at .\SQLExpress!

BAND – Visual Studio Launch Event!

Come out to the July BAND gig on Tuesday, July 27 at 6 pm and enjoy THREE talks on Visual Studio 2010!

There will be pizza, soda, networking with peers and talks on how to make the best use of the development tool(s) we use daily.

  • Talk #1 will be about what’s new in building ASP.NET sites in Visual Studio.
  • Talk #2 will be about Visual Studio 2010 Extensions: how to get them, some of the cool ones, and how to update the ones you have.
  • Talk #3 will be about C# .NET 4.0 language features — lots of good new stuff there!

You will leave full of good and practical info on using Visual Studio 2010, and will likely walk away with a goodie or two! There will be GIVEAWAYS at the end, from hardware to software, and lot of other things.

So come join the fun, learn about some of the best parts of the new tools, and make it an evening with others like you!

Sign up at the Bangor Developers website.

Powered by WordPress & Theme by Anders Norén