I have always received the question regarding how to reserve leading zeroes in SQL Server while displaying them on the ... data SELECT * FROM Table1 GO -- Remove leading zeros SELECT SUBSTRING(Col1, PATINDEX('%[^0 ]%', Col1 + ' '), LEN(Col1)) FROM Table1 ...
↧