Your technology certification is waiting. Enroll in Cloud Class ®
Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
/****** Object: StoredProcedure [dbo].[Erlang_C2] Script Date: 11/09/2010 09:17:53 ******/
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
-- Author: OKACS
-- Create date: 11/9/2010
-- Description: Finds the # agents necessary to reach a given service level
-- Loop Through Andy's Erlang C proc until the value meets the goal
-- and then display the resulting N
ALTER PROCEDURE [dbo].[Erlang_C2]
@A float, -- Amount of traffic expressed in Erlangs (call arrival rate/sec X average call time)
@P float -- Service Level Goal (Change of call going to hold)
DECLARE @S float -- Resultant Service Level
DECLARE @I int -- Number agents required
SET @S = 99
SET @I = 1
IF (@P < 1 or @P > 99)
-- Error, ServiceLevel Goal cant be less than 1% or greater than 99%
SET @I = 0
-- SELECT 'Looking for goal : ' + cast(@P as varchar)
WHILE ((@S >= 100-@P) and (@I < 35)) -- To a max of 35 so the function does not run forever
EXEC @S = [Erlang_C] @A, @I
SET @I = @I + 1;
-- SELECT 'TRYING ' + cast(@I as varchar) + ' agents for SL of '
-- SELECT @S as SL
SELECT @I as AgentsNeeded
-- Erlangs ServiceLevel
-- EXEC [Erlang_C2] 23.31, 99
Open in new window
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.