How @@MAX_CONNECTIONS Works in SQL Server

In SQL Server, the @@MAX_CONNECTIONS configuration function returns the maximum number of simultaneous user connections allowed on an instance of SQL Server. The number returned is not necessarily the number currently configured.

No argument is required. You can simply use it in a SELECT statement to return the maximum number of simultaneous user connections allowed on the current server.

Continue reading

Including Tables & Schemas when Listing the Identity Columns in a SQL Server Database

If you’ve ever queried the sys.identity_columns view in SQL Server, you’ll know that it returns a list of identity columns. It also returns the object_id of the table, but not the table name or its schema.

You can use the code examples in this article to return the identity columns, along with their respective tables and schemas.

Continue reading