SELECT @@ServerName returns NULL

  • Where I execute the command SELECT @@ServerName it returns NULL?

    This just started today.

    What could cause that?

  • Chris.Hubbard4U (8/14/2015)


    Where I execute the command SELECT @@ServerName it returns NULL?

    This just started today.

    What could cause that?

    What does SELECT SERVERPROPERTY ( 'InstanceName' ) return?

    😎

  • Eirikur Eiriksson (8/14/2015)


    Chris.Hubbard4U (8/14/2015)


    Where I execute the command SELECT @@ServerName it returns NULL?

    This just started today.

    What could cause that?

    What does SELECT SERVERPROPERTY ( 'InstanceName' ) return?

    😎

    NULL:unsure:

  • Chris.Hubbard4U (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Chris.Hubbard4U (8/14/2015)


    Where I execute the command SELECT @@ServerName it returns NULL?

    This just started today.

    What could cause that?

    What does SELECT SERVERPROPERTY ( 'InstanceName' ) return?

    😎

    NULL:unsure:

    Are you connected to any server while executing this (joke, sorry couldn't help it:-D )

    😎

    Any changes you know of in the environment?

  • Eirikur Eiriksson (8/14/2015)


    Chris.Hubbard4U (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Chris.Hubbard4U (8/14/2015)


    Where I execute the command SELECT @@ServerName it returns NULL?

    This just started today.

    What could cause that?

    What does SELECT SERVERPROPERTY ( 'InstanceName' ) return?

    😎

    NULL:unsure:

    Are you connected to any server while executing this (joke, sorry couldn't help it:-D )

    😎

    Any changes you know of in the environment?

    No changes. LOL

  • What does this return:

    select * from sys.servers;

  • Lynn Pettis (8/17/2015)


    What does this return:

    select * from sys.servers;

    It does not return any rows:unsure:

  • Two questions:

    1) is this a default instance

    2) What does the following return: select SERVERPROPERTY('machinename');

  • SQL Server got converted to NoSQL? :w00t:



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • Looks like someone ran sp_dropserver.

  • Lynn Pettis (8/17/2015)


    Looks like someone ran sp_dropserver.

    Someone should then run sp_addserver

    😎

  • Lynn Pettis (8/17/2015)


    Looks like someone ran sp_dropserver.

    oops! I'd run too after dropping the server. :w00t:



    Alvin Ramard
    Memphis PASS Chapter[/url]

    All my SSC forum answers come with a money back guarantee. If you didn't like the answer then I'll gladly refund what you paid for it.

    For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]

  • Eirikur Eiriksson (8/17/2015)


    Lynn Pettis (8/17/2015)


    Looks like someone ran sp_dropserver.

    Someone should then run sp_addserver

    😎

    Yes. Need the answers to the two questions I asked.

  • Lynn Pettis (8/17/2015)


    Two questions:

    1) is this a default instance

    2) What does the following return: select SERVERPROPERTY('machinename');

    I did not answer you first question; sorry about that.

    I can not think of anyone that EXEC the sp_dropserver command.:unsure:

  • Chris.Hubbard4U (8/17/2015)


    Lynn Pettis (8/17/2015)


    Two questions:

    1) is this a default instance

    2) What does the following return: select SERVERPROPERTY('machinename');

    I did not answer you first question; sorry about that.

    I can not think of anyone that EXEC the sp_dropserver command.:unsure:

    I don't see an answer to either question.

Viewing 15 posts - 1 through 15 (of 17 total)

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