How to add a new server (as shown with "server name" in management studio) and how to delete the old one?

I am using SQL Express 2008 R2. I have two servers ".\robbysqlexpress" and ".\sqlexpress". The ".\sqlexpress" server is not working. It gives error whenever I try to connect:
"Cannot connect to (local)\SQLEXPRESS.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: Shared Memory Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 2)"
So I want to delete this server and create a server with the same name again. So could you tell me how to do that?
: Robby

Hi Robby,
Can you check that instance of server exists. deleting and recreating will not help you.
It is really a generic error(and hope your sql server instance exits -> http://community.shavlik.com/docs/DOC-23089).
please follow this blog post to resolve it -> http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
Unfortunately, it does not appear to be possible (or at least practical) to only remove certain items.
However, if you want, you can reset the configuration and start from scratch.
Make sure Management Studio is closed, then delete or rename this file:
%APPDATA%\Microsoft\Microsoft SQL Server\100\Tools\Shell\SqlStudio.bin
Regards Harsh

Similar Messages

Maybe you are looking for