Try out STUFF function of SQL Server
Check out the syntax in BOL.
Yog
-----Original Message-----
From: Biswaranjan Rath
[mailto:mssqldba-ezmlmshield-x80381579.[Email address protected]
Sent: Thursday, July 29, 2004 1:25 PM
To: LazyDBA Discussion
Subject: Date formatting using convert
Syntax of Conevrt is
CONVERT ( data_type [ ( length ) ] , expression [ , style ] )
I'm trying as
select convert(datetime [ 8 ], '2004-07-28 12:53:29.957', 110)
but it's not working. even i tried
select convert(datetime [ 'mm-dd-yyyy' ], '2004-07-28 12:53:29.957',
110)
i want the date in mm-dd-yyyy format. so can anyone suggest me...
With best regards
Biswaranjan Rath
Subject Matter Expert
Amdocs DVCI, Pune, India
Phone : +91-20-4048951 Extn.: 302(Office)
+91-20-4062302 (Direct)
------------------------------------------------------------------------
-------------
The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated
recipient(s)
of the message. If the reader of this message is not the intended
recipient,
you are hereby notified that any dissemination, use, distribution or
copying of
this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us
immediately
by replying to the message and deleting it from your computer.
Thank you.
---------------------------------------------------------
---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
Website : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
For additional commands, e-mail: mssqldba-[Email address protected]
---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
Website : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html
For additional commands, e-mail: mssqldba-[Email address protected]
Zensar Technologies Ltd. Mail Disclaimer: This e-mail and any files transmitted with it are confidential and the views expressed in the same are not necessarily the views of Zensar Technologies Ltd., and its Directors, Management or Employees. This communication represents the originator's personal views and opinions. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail by error, and that any use, dissemination, forwarding, printing, or copying of this e-mail is strictly prohibited. You shall be under obligation to keep the contents of this e-mail, strictly confidential and shall not disclose, disseminate or divulge the same to any Person, Company, Firm or Entity. Please ensure you have adequate virus protection before you open or detach any documents from this transmission. Zensar Technologies Ltd. does not accept any liability for virus. If you received this e-mail in error, please immediately notify [Email address protected] The rights to monitor all e-mail communication through our network are reserved with us.
MS Sql Server LazyDBA home page