October 23, 2019 at 6:34 pm
Windos Name changue after SQL was installed, now I install a new SQL Instance and have a problem if I try to connect fromo remote server, I check the properties and the default Database user is with the initial windows server name and the the aditional Instances have the secon windows server name, what I need to do in order to discover if this the remote connection problem with the SQL
Regards
October 23, 2019 at 6:59 pm
you'll need to modify this query with your names:
EXEC sp_dropserver 'OldServerName'
EXEC sp_addserver 'NewServerName', 'local'
after that, there will be a difference in @@servername until you can stop and restart the SQL service, after which the new name will take affect:
select * from sys.servers where server_id = 0
select @@servername
Lowell
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply