Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

SQLStackEngine - simulate a character stack

By Wayne Lawton,

SQLStackEngine - simulate a character stack using a string.  This script was developed specifically to support the operator stack in SQLCalcEngine(also on this site).  However, the implementation is complete enough to stand on its own.

There are several functions in the package that correspond to the common stack functions of Push, Pop, Peek, and so on.

In addition, unit test code is embedded in-line within the package as commented out lines.

Total article views: 127 | Views in the last 30 days: 2
Related Articles

SQL Server Stack Dump

SQL Server Stack Dump


Stacked Column Chart - Incorrect Aggregate ???

I have an aggregate problem with a stacked column chart...


Microsoft Azure Stack in Preview!

Microsoft made available the first technical preview of its new Microsoft Azure Stack offering today...


Towards a Single Management Stack

Phil Factor argues that with both SQL Server and PowerShell now running on Linux, the latter becomes...