Function to returns the value of the given property as a string

  • Hi,

    Could you anyone let me know whats the equivalent command of below in MSSQL Server2000.

    In SybaseSQL Anywhere

    connection_property ( { property-id | property-name } [, connection-id ] )

    Returns the value of the given property as a string. The current connection is used if the second argument is omitted.

    eg:

    select connection_property('NUMBER')

    output:

    connection_property('NUMBER')

    1057111593

    So, I would like to know the equivalent command in MSSQL2000 for the above function.

    Thanks n Regds.

    ~ SHAM ~

  • No sure what the "Number" parameter in Sybase is but...

    There a multiple functions in SQL Server that return info about the current connection... for example... @@SPID returns the SPID of the connection.

    You'll need to visit Books OnLine (comes free with SQL Server)... lookup [Functions, Configuration] and [Functions, System].

    There are also quite a few sp_helpxx procs that return a bunch of things you may be interested in... again, lookup in Books Online with [system stored procedures, listed].

    Also, lookup DBCC xx and the SET command... lots'o goodies in those, too.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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