After tried with everything in hostname I finally solved that issue..When we install SQL with named instance it won't automatically listen to the port 1433.So we need to change the port to default 1433 port and we need to restart the services.Changing the port number can be done by start->all programs->sqlserver 2008 r2-->configuration tools->sqlserver configuration..In that we have to change..Problem fixed.
↧