January 10, 2007 at 10:03 pm
January 11, 2007 at 6:35 am
there's a difference between changing a machine name, and changing a named instance.
for example, if my machine is named DEVPLATFORM, and I want to rename it as DEVELOPER, I right click on my computer, select properties...Network Id tab and change the machine name.
After that has been done, i run the following commands to affect my SQL instance:
sp_dropserver 'old server name'
sp_addserver 'new server name', 'local'
or specifically in this example:
sp_dropserver 'DEVPLATFORM'
sp_addserver 'DEVELOPER', 'local'
now, my machine will be visible to other machines as DEVELOPER, and when they run select @@SERVERNAME in a query, it will return the correct name.
also, if I had any instances of SQL, such as DEVPLATFORM\SQL2005, they will now need to connect to DEVELOPER\SQL2005
now if you were talking about renaming the instance DEVPLATFORM\SQL2005 to be DEVPLATFORM\NEWNAME, that requires deleting one instance and adding a new one;
Lowell
January 11, 2007 at 10:56 pm
January 12, 2007 at 5:00 am
there is no change for the users; remember that their logins and permissions are mapped to roles in each of databases on the machine. Esentially their permissions are stored in the master database and are related to login name & SID for mapping permissions. They are not related to a machine name.
It's similar to connecting by IP address: the ip address may have changed, but once connected, the permissions associated to the login remain the same.
Lowell
January 14, 2007 at 7:11 pm
in my logins, i have found these users (see below). "X226" is my old machine name which i already changed to a new name. Would it affect the system if i delete these users created during the installations?
X226\SQLServer2005MSFTEUser$X226$MSSQLSERVER
X226\SQLServer2005MSSQLUser$X226$MSSQLSERVER
X226\SQLServer2005SQLAgentUser$X226$MSSQLSERVER
January 15, 2007 at 1:34 pm
Hey, that is a very good question. I renamed a SQL 2005 and ran the SP_drop / add and it all worked fine. However, those three internal IDS still have the old server name in them. I don't see anything in BOL about renaming a SQL Server on what to do about them ....
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply