October 23, 2006 at 3:30 am
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 ~
October 23, 2006 at 6:56 am
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
Change is inevitable... Change for the better is not.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply