Viewing 15 posts - 16 through 30 (of 35 total)
I need to export fields to a flat file to import into a billing system. Thanks for your help but I just realized that we have a function in...
June 30, 2009 at 11:16 am
Sorry, but that doesn't work as I need the format to be last day of previous month in MM/DD/YYYY format.
June 30, 2009 at 11:08 am
That works for the date as 05/31/2009 but it also gives me the time of 00:00:00.000 and I only need 05/31/2009.
Thanks, any other ideas?
June 30, 2009 at 11:06 am
Thanks, that worked. I modified it a bit for a column I need to format.
replace(convert(varchar(13),end_date,10),'-','')
May 21, 2009 at 11:11 am
Thanks a bunch. That worked like a gem.
March 12, 2009 at 12:14 pm
Thanks, I will try this when I get time and let you know.
March 12, 2009 at 11:36 am
Thank you. I changed the line to convert only to an int and *100 like below.
left(CONVERT(int,total_price*100)+' ', 6)
the 21.80 converted to 2180. Thanks...
March 5, 2009 at 11:49 am
Yes, you are correct. The original developer or our company's softwae has created this date function. However, this fancy dancy date format does require a convert otherwise the...
February 20, 2009 at 5:25 pm
Thanks everyone. The following worked for me.
select convert(varchar, dbo.date_format(getdate(), 'dd-mmm-yy'))
This returned me the value 19-FEB-09, just like I needed.
February 19, 2009 at 11:48 am
Thanks, this works great except I need the - between the dd-month-yy.
February 19, 2009 at 11:33 am
Thank you so much for your help. The length fixed the cursor and it is working now.
February 12, 2009 at 7:47 pm
Tried the modified cursor as requested and I still get the same results. Any more ideas. I tried doing a simple update statement also but that doesn't work.
DECLARE
@newEmpID...
February 12, 2009 at 7:19 pm
Thanks, I was just thinking of using a simple update statement. I am new to cursors and was trying to use a cursor as a learning thing. If...
February 12, 2009 at 6:50 pm
Thank you for your help. This worked like a gem, and it makes sense to me now. Gail, thanks for your reply too.
Have a good day.
October 9, 2008 at 12:31 pm
Viewing 15 posts - 16 through 30 (of 35 total)