Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Ex: MaxNo=10 Digits=8Then I need to Return The Number as 00000010Like the same for any other maxno. If the Max no is 8 digit number then it will return the same 8 digit number. How to built the above scenario in Sql Query. Please help me in this..Regards,Kalaiselvan RLove Yourself First....
Seventhnight
Master Smack Fu Yak Hacker
2878 Posts
Posted - 2011-04-13 : 14:45:41
You should be doing this in the presentation layer...but in SQL: