@@CONNECTIONS function returns the number of connections, or attempted connections, since SQL Server was last started.
Syntax of @@CONNECTIONS Function :
@@CONNECTIONS
Return type of @@CONNECTIONS function is an integer.
Examples of @@CONNECTIONS Function :
Example 1 : Use of @@CONNECTIONS function in select clause
SELECT CONVERT(VARCHAR(10),@@CONNECTIONS) + ' login attempts made on ' + CONVERT(VARCHAR(50),getdate())
Output
4782 login attempts made on Aug 25 2010 5:24PM
Above example returns 4782 means 4782 login attempts made since sql server was last started.