A SQL Server stored procedure to information about used identities in a scheme