Technical Article

Display results VERTICALLY in Results window

DESCRIPTION:This procedure will allow you to display results vertically (down) instead of across the screen. It's great when you are dealing with a query that has 50 columns and just a couple of records. LIMITATIONS: * It will be very slow if you are trying to return a lot of records. Works best for queries […]

1 (1)

You rated this post out of 5. Change rating

2007-05-23 (first published: )

2,954 reads

Technical Article

Dynamic and Unique field Select creator

DESCRIPTION:This procedure produces a SELECT statement which explicitly lists all fields for 'tablename' with fieldname and alias as the column name. The SELECT it produces is ready to run or if you need to join several tables just copy the column names off the SELECT it generates. I use this a lot when I create […]

4 (1)

You rated this post out of 5. Change rating

2007-05-22 (first published: )

173 reads

Blogs

How to Learn SQL Without Quitting Your Day Job

By

Juggling meetings, deadlines, and family? Yeah, learning SQL might seem like climbing Mount Everest...

SQL Server 2025

By

Microsoft announced on November 2024 a preview for SQL Server 2025 another major release...

Advice I Like: Apologies

By

How to apologize: quickly, specifically, sincerely. Don’t ruin an apology with an excuse –...

Read the latest Blogs

Forums

SQL Clustered Resource in online pending for about 3-5 mins before coming online

By PJ_SQL

Hello! SQL Clustered resource used to come online during manual or automatic failover in...

SQL Query to use in MS SSRS server to give you your report structure.

By wolfsvein

Code that can be used in order to create dashboard or SSRS report on...

Temp table security

By Brandie Tarvin

So, I have an interesting situation that I need a double-check on. One of...

Visit the forum

Question of the Day

Escaping Like I

I have this data in a SQL Server 2022 table:

PlayerIDPlayerNamePlayerStatus
1The \%ChampActive
2The ChampActive
3The_ChampionActive
4The__ChampionActive
5The\_ChampActive
How many rows are returned by this code in SQL Server 2022?
select PlayerName from player
where playername like 'The\_C%' escape '\'
 

See possible answers