Generate ASCII table | SansSQL

Thursday, October 10, 2013

Generate ASCII table


Here is T-SQL Query to generate ASCII table

DECLARE @ASCIITable TABLE 
       (AsciiChar nvarchar(2), CharNum int)
DECLARE @CNT INT
SET @CNT = 1

WHILE @CNT < 125
BEGIN
       INSERT INTO @ASCIITable
       SELECT CHAR(@CNT), @CNT
       SET @CNT = @CNT + 1
END

SELECT * FROM @ASCIITable

1 comment:

WaseemBakkar said...

Interesting resource on ASCII characters! Just like every character in the table has its specific code and place, every step in logistics must be precise and organized too. When working with reliable Air Freight Companies in Pakistan, accuracy in documentation, tracking codes, and handling procedures is essential to ensure shipments move smoothly from origin to destination. Clear standards and well-structured systems—whether in programming or air cargo—make a big difference in achieving consistent, error-free results.

Post a Comment

Ads