SQL Clone
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: 1
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...


CONTEXT_INFO() and the SQL Calling Stack

Nothing new for many developers, but I still like the way you can maintain the stack throughout the ...