Skip to content

Instantly share code, notes, and snippets.

@BrentOzar BrentOzar/Fun With ASCII
Last active Jan 17, 2019

Embed
What would you like to do?
CREATE DATABASE [٠০౦০٠];
GO
USE [٠০౦০٠];
GO
CREATE SCHEMA [٠০౦০٠];
GO
CREATE TABLE [٠০౦০٠].[٠০౦০٠]([٠০౦০٠] NVARCHAR(20), [۰০౦০٠] NVARCHAR(20), [٠০౦০۰] NVARCHAR(20), [۰০౦০۰] NVARCHAR(20));
GO
CREATE UNIQUE CLUSTERED INDEX [٠০౦০٠] ON [٠০౦০٠].[٠০౦০٠]([٠০౦০٠], [۰০౦০٠], [٠০౦০۰], [۰০౦০۰]);
GO
INSERT INTO [٠০౦০٠].[٠০౦০٠]([٠০౦০٠], [۰০౦০٠], [٠০౦০۰], [۰০౦০۰])
VALUES (N'[۰০౦০٠]', N'[۰০౦০٠]', N'[٠০౦০۰]', N'[۰০౦০۰]');
GO
CREATE VIEW [٠০౦০٠].[۰০౦০٠] AS SELECT [٠০౦০٠], [۰০౦০٠], [٠০౦০۰], [۰০౦০۰] FROM [٠০౦০٠].[٠০౦০٠];
GO
CREATE PROC [٠০౦০٠].[٠০౦০۰]
@٠০౦০٠ NVARCHAR(20),
@۰০౦০٠ NVARCHAR(20),
@٠০౦০۰ NVARCHAR(20),
@۰০౦০۰ NVARCHAR(20) AS
SELECT [٠০౦০٠], [۰০౦০٠], [٠০౦০۰], [۰০౦০۰]
FROM [٠০౦০٠].[۰০౦০٠]
WHERE [٠০౦০٠] = @٠০౦০٠
AND [۰০౦০٠] = @۰০౦০٠
AND [٠০౦০۰] = @٠০౦০۰
AND [۰০౦০۰] = @۰০౦০۰
ORDER BY [۰০౦০۰], [٠০౦০۰], [۰০౦০٠], [٠০౦০٠];
GO
EXEC [٠০౦০٠].[٠০౦০٠].[٠০౦০۰]
@٠০౦০٠ = N'[۰০౦০۰]',
@۰০౦০٠ = N'[٠০౦০۰]',
@٠০౦০۰ = N'[۰০౦০٠]',
@۰০౦০۰ = N'[٠০౦০٠]'
GO
@baleng

This comment has been minimized.

Copy link

baleng commented Nov 14, 2018

one step beyond with
CREATE TYPE [٠০౦০٠] from nvarchar(20)
GO
CREATE SCHEMA [٠০౦০٠];
GO
CREATE TABLE [٠০౦০٠].[٠০౦০٠]([٠০౦০٠] [٠০౦০٠], [۰০౦০٠] [٠০౦০٠], [٠০౦০۰] [٠০౦০٠], [۰০౦০۰] [٠০౦০٠]);
AND
CREATE PROC [٠০౦০٠].[٠০౦০۰]
@٠০౦০۰ [٠০౦০٠],
@٠০౦০۰ [٠০౦০٠],
@٠০౦০۰ [٠০౦০٠],
@۰০౦০۰ [٠০౦০٠] AS
AH AH! REALLY AMAZING

@MaxVernon

This comment has been minimized.

Copy link

MaxVernon commented Nov 28, 2018

one step beyond with
CREATE TYPE [٠০౦০٠] from nvarchar(20)
GO
CREATE SCHEMA [٠০౦০٠];
GO
CREATE TABLE [٠০౦০٠].[٠০౦০٠]([٠০౦০٠] [٠০౦০٠], [۰০౦০٠] [٠০౦০٠], [٠০౦০۰] [٠০౦০٠], [۰০౦০۰] [٠০౦০٠]);
AND
CREATE PROC [٠০౦০٠].[٠০౦০۰]
@٠০౦০۰ [٠০౦০٠],
@٠০౦০۰ [٠০౦০٠],
@٠০౦০۰ [٠০౦০٠],
@۰০౦০۰ [٠০౦০٠] AS
AH AH! REALLY AMAZING

I really hope I never ever see something like that in the wild!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.