dbTalk Databases Forums  

conversion ?

microsoft.public.sqlserver.programming microsoft.public.sqlserver.programming


Discuss conversion ? in the microsoft.public.sqlserver.programming forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Newman
 
Posts: n/a

Default conversion ? - 12-13-2004 , 06:31 AM






how can i converts a varchar to a smallmoney value



Reply With Quote
  #2  
Old   
Uri Dimant
 
Posts: n/a

Default Re: conversion ? - 12-13-2004 , 06:38 AM






Peter

SELECT convert(varchar,cast(22.2 as smallmoney),1)

SELECT convert(smallmoney,cast(22.2 as varchar(10)),1)





"Peter Newman" <PeterNewman (AT) discussions (DOT) microsoft.com> wrote

Quote:
how can i converts a varchar to a smallmoney value





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.