Viewing 12 posts - 1 through 13 (of 13 total)
Sussed it!
The first part (US date format) i've done a SET DATEFORMAT dmy
The second part, I've made it cater for both dd/mm/yy AND dd/mm/yyyy:
[code...
March 8, 2018 at 5:37 am
I have a problem with this now...If the date in the note is in UK format, it returns NULL. (It works as expected when it is in US format).
The...
March 8, 2018 at 4:42 am
That works great Steve...Thankyou.
I had done the last part this way:
Yours works just as well 🙂
SELECT @combinedString = COALESCE(@combinedString + CHAR(13) + CHAR(10), '')...
March 7, 2018 at 7:59 am
Thanks John. Sorted :-
DECLARE @Contents varchar(4000)
SET @Contents =
'abcdef 01/01/2018 08:15:13 This is a note , this is a note , this is a note...
March 6, 2018 at 9:02 am
March 6, 2018 at 8:44 am
Perfect. Thankyou very much
March 5, 2018 at 7:55 am
Thankyou so much John....But....you're going to kill me!!
I posted in the wrong section. Its 2008 (not 2012).
Is there a substitute for LEAD?...Sorry!
March 5, 2018 at 7:34 am
Highly unlikely John. I am going to make the assumption not
March 5, 2018 at 4:42 am
Hi Shanu,
I'm really sorry i did not reply to your message straight away.
I did get it all working in the end. Very similar to the code above.
If you need the...
January 12, 2011 at 3:43 am
ah sorry. Here's the code i used to create the initial calendar table.
Its 2 functions and then an SP. Most of the code i found on this forum and just...
November 10, 2010 at 8:00 am
Thankyou Andrew,
that makes perfect sense...and so very simple (when you know how!)
I don't know though how to populate the new field with an incremented value.
Can you help with this or...
November 10, 2010 at 7:28 am
Hi, Thankyou for your reply.
I have changed the calendar table so that it now has a BIT field for IsWorkingDay.
I dont really have any code that would make sense to...
November 10, 2010 at 6:55 am
Viewing 12 posts - 1 through 13 (of 13 total)