Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in

Bradley Schacht

Bradley is a consultant at Pragmatic Works in Jacksonville, FL. He was an author on the book SharePoint 2010 Business Intelligence 24-Hour Trainer and tech edited the SQL 2011 Bible. His experience on the Microsoft BI platform includes DTS, SSIS, SSRS, SSAS and migrations and conversions. He has helped numerous companies in successfully developing and implementing new business intelligence solutions into their organizations. Bradley also participates as a speaker in community events like SQL Saturday, Code Camp, SQL Lunch and SQL Server User Groups. He is a contributor on sites such as and SQL Server Central as well as an active member of the Jacksonville SQL Server User Group (JSSUG).

Modify Host File on Windows 7

Modifying the Windows host file can be a great way to ensure that you don’t accidentally modify production while doing development or just redirecting traffic on your computer. For instance, while at a client’s office I was able to access a server by entering just the server name, but when working remote via VPN I was required to enter IP address or the server. Luckily while on the network I could access the server by IP also. All the SSIS packages used the server name, so it made testing from outside the office a bit of a pain.

The Windows host file will allow you to enter a host name and associated IP address. The host file can be found at C:\windows\system32\drivers\etc\hosts on Windows 7. To edit the host file head over to notepad and open that file.

If you ping and you will get the IP addresses of and respectively.

However, I can modify the host file to redirect to the IP address of

Now when I ping I can see that it is trying to use the IP for

…and when I go to in my web browser it loads the Yahoo homepage. This can be very useful for testing. If you want to make sure that you don’t hit the production server simply redirect the name of the production server to the IP address of your development server and away you go!


Leave a comment on the original post [, opens in a new window]

Loading comments...