Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2003
    Location
    IL
    Posts
    5

    Arrow Unanswered: Need to know the Server Name

    Hi,

    How to find out the name of the Sybase server you are currently logged in to using SQL?

    Thank you

  2. #2
    Join Date
    Mar 2001
    Location
    Lexington, KY
    Posts
    606
    SELECT @@servername

    You should probably take a look at the Sybase ASE Quick Ref guide. It makes these sorts of questions unnecessary.
    Thanks,

    Matt

  3. #3
    Join Date
    Nov 2002
    Location
    Switzerland
    Posts
    524
    With ASE version 12.5, @@servername runs fine with the default configuration.

    Before this version, you had to fix it with a
    Code:
    exec sp_dopserver local
    exec sp_addserver YourASEName, local, YourASEName

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •