Showing posts with label How to display a string vertically in SQL Server?. Show all posts
Showing posts with label How to display a string vertically in SQL Server?. Show all posts

How to display a string vertically in SQL Server?

Below I have mentioned 2 queries using which you can display a string vertically:Query 1: Using While loop: DECLARE @string VARCHAR(256) = 'welcome' DECLARE @cnt INT = 0; WHILE(@cnt < len(@string)) BEGIN     SET @cnt = @cnt + 1;     PRINT SUBSTRING

Read More