server name change and sql express

Posted on 2010-01-11
Medium Priority
Last Modified: 2012-05-08
I changed the name of my server and I can't get Sql to connect.  I'm not an SQL developer here's the error. Sql express, server 2003 standard.
Question by:WellingtonIS
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 57

Expert Comment

by:Raja Jegan R
ID: 26285759
Kindly try connecting using your old server name itself and it should work..

And steps to change your SQL Server name here:

-- Drop old server name
sp_dropserver 'ur_old_server_name';
-- Add new server name
sp_addserver 'ur_new_server_name', local

This would help you change your server name..
And after that you can try connecting to your new server name and that should work..

Author Comment

ID: 26285873
these are commands that I run in dos?
LVL 57

Accepted Solution

Raja Jegan R earned 1000 total points
ID: 26285983
Just run those commands in SSMSE if you have or run it using SQLCMD from command prompt..

And make sure you are in master database while running that script:

use master
-- Drop old server name
sp_dropserver 'ur_old_server_name';
-- Add new server name
sp_addserver 'ur_new_server_name', local


Author Comment

ID: 26286163
forgive my ignorance but what exactly is SSMSE?  Also in sqlexpress it sees the server name that I gave it.

Author Closing Comment

ID: 31675632
That worked thanks! Whew.  Sorry about the double post.

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question