![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am a newbie in SQL server 2008. It is difficult for me to change the hostname of SQL server 2008. In internet, I found the script execute in SQL server 2008. sp_dropserver <old_name GO sp_addserver <new_name>, local GO However, the username of SQL server 2008 is under <old_name\user1 old_name\administrator>...... Who can tell me the things have to do when hostname of SQL server 2008 changed? Thank you. Ming |
#3
| |||
| |||
|
|
I'm not sure why you mention the user name. Changing the host name (that is the name of the computer) isn't related to the name of the account used by the Database Engine service. When connected to SQL Server, execute SELECT @@SERVERNAME That will return the name that SQL Server thinks it is. |
![]() |
| Thread Tools | |
| Display Modes | |
| |