I'm in the process of migrating a database server, both the new and the old server are on the same network.
Now I want to test the application that uses this database server on my machine which is also on this network. I don't want to turn the old database server off as its still being used by other people but I would like my machine to think it doesn't exist.
Can I just edit my hosts file to achieve this?
Update : My machine is running Windows 7 and the servers are running Windows Server 2008
Basically I want my machine to think that \\OldServername doesnt exist any more and not be able to access it. This should let me see what problems the application has without having to turn the old server off.