We help IT Professionals succeed at work.

Need 2 digit Millisecond

218 Views
Last Modified: 2010-03-19
I know I asked this before, but I can't find the answer.

I have an SQL table that has a date field.  A piece of the SQL stored procedure that returns the date is:
CONVERT(varchar,duration,14) AS duration

It comes back as: hh:mm:ss:mss

I need it: hh:mm:ss:ms

I would swear it worked at one time...

I would prefer to fix it on the SQL side as this store procedure is used in many places.
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2015
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
That simply truncates it, right?
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
Yes

Author

Commented:
It is funny how simple some solutions are...
CERTIFIED EXPERT
Most Valuable Expert 2015

Commented:
Wish all solutions were like that ;-)
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.