Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2004
    Posts
    5

    Unanswered: Getting servername inside XP

    Hi :

    Can anyone tell me if it is possible to get information like : servername/databasename inside an extended stored procedure ?

    I checked the "srv_pfield" function but it only returns user/password information.

    Thanks,
    Rui

  2. #2
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    I'd use:
    Code:
    SELECT @@servername, Db_Name()
    -PatP

  3. #3
    Join Date
    Dec 2004
    Location
    California, USA
    Posts
    93
    Why use an extended stored procedure?

    select @@SERVERNAME, DB_NAME ()
    Whoever imagines himself a favorite with God holds others in contempt. - Robert Green Ingersoll, lawyer and orator (1833-1899)

Posting Permissions

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