@@servername null?

  • if I use sp_helpserver it gives me the correct name, but a null if I use @@servername. SO i then try sp_drop and sp_rename and still get null? 

    Is there another option besides reloading sql?

  • Run sp_addserver.

  • tried that already says it exsists. so I then rerun @@servername and it still says null no makes no since

  • Try sp_addserver 'yourservername', 'local' and restart SQL Server.

  • tryied that to, got it already exists.Then I run @@servername and its 'null'? makes no since

  • 1. Drop it by sp_dropserver

    2. Restart SQL Server

    3. Add it back by sp_addserver 'servername', 'local'

    4. Restart SQL Server

    5. select @@servername

  • tried that yesterday,didn't work.

    I tried again for the hell of it and IT WORKED

    SWEEEEET !!!!! I think I left of the 'local'

  • Check your version of Books Online. If you have the one that shipped with SQL Server, I believe it left off the local. That's been fixed, along with a slew of other things in the last two versions of BOL. To get the most recent version, go here:

    http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

     

    K. Brian Kelley
    @kbriankelley

  • install SP3a for Sql Server 2000 ... and do all the above steps again


    Alamir Mohamed
    Alamir_mohamed@yahoo.com

Viewing 9 posts - 1 through 8 (of 8 total)

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