Advertisement

01.29.2008 at 09:58AM PST, ID: 23120159
[x]
Attachment Details

Display Currency as char(14) with leading zeros + no decimal point

Asked by jimhorn in MS SQL Server

Hi All

I'm converting some Access VBA to T-SQL where I take a Currency value, remove the decimal, and feed it as a char(14) with leading zeros.

Access:  Format(Round(1234567.89*100),"00000000000000") will return 00000123456789

What is the SQL equivalent of this?

TIA
Jim

Start Free Trial
[+][-]01.29.2008 at 10:10AM PST, ID: 20770436

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Sign Up Now!
Solution Provided By: aneeshattingal
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628