Tuesday, 16 October 2012

Global Variables in Sql server

Global Variables:

  •   These are available in sql server and predefined.
  •  we can't modify these variables.
  • these are helpful in transact sql
  • These start with @@
  • The server maintains these values in variables
  • Example

    SELECT @@MAX_CONNECTIONS AS 'Max Connections'

    Output

    Max Connections
    ---------------
    32767
    
    

No comments:

Post a Comment