SQL NET - A Place to talk on MS SQL Server and other database tools

Talks on SQL Server, database development, data management techniques,SQLBI/SSIS/SSAS/SSRS etc. Want to publish something db related ? mail to bineeshthomas@gmail.com with subject line starting as "SQLNET"

SQL NET FORUM

Portal Maintained By : BINEESH THOMAS

Monday, July 13, 2009

To get number of actual decimal places for a number

 

 

Select Len(Cast(Reverse(Substring(Cast(4.23400 as varchar(50)), patindex('%.%', Cast(4.23400 as varchar(50)))+1,100)) as Int))

 

 

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home

Free Domain Name - www.YOU.co.nr!