Change Instance name on Server

  • Hi there,

    When I run the select serverproperty ('InstanceName') on one of our servers, I get a NULL value.

    how can I change the result to get SQL2005.

    I have tried the code below...but it does not work:

    Copy Code

    sp_dropserver

    GO

    sp_addserver , local

    GO

    Restart the SQL Server instance.

    Regards

    IC

  • from BOL 😉

    SERVERPROPERTY ( propertyname )

    InstanceName

    Name of the instance to which the user is connected.

    Returns NULL if the instance name is the default instance, if the input is not valid, or error.

    Base data type: nvarchar(128)

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

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

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