Windos Name changue after SQL was installed,

  • 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

  • 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


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply