
Announcements
Hi ,
I am retreiving an ID column from SQL table. The values shows in this way, in combobox :- -
0000345
0004567
0035678
I want that values in combobox should show up in this way -
345
4567
35678
Hi @ssvk
Can the leading zeros be removed in sql server?
This link has a simple method:
SUBSTRING(str_col, PATINDEX('%[^0]%', str_col+'.'), LEN(str_col))Cheers
Hadyn