Viewing 15 posts - 1 through 15 (of 23 total)
Thanks Jeff for your time and help in answering, I will experiment a bit with this technique!
July 1, 2019 at 7:53 am
I've been having a play again and have come up with the following trigger which seems to work.
CRAETE TRIGGER [dbo].[updateDateTime]
ON [dbo].[tblFuelRejection]
AFTER UPDATE
AS UPDATE tblFuelRejection
SET DateTimeStamp...
June 30, 2019 at 1:45 pm
Thank you, that fixed it.
Much appreciated!
Joe
November 27, 2018 at 10:47 pm
February 8, 2018 at 6:30 am
Hi there, thank you for the replies and also thank you for the comprehensive information on the DelimitedSplit8k_LEAD by Eirikur Eiriksson, a nice bit of bedtime reading! I was using the...
June 15, 2017 at 2:20 pm
Hi Guys,
Apologies, I think I have posted this in the wrong forum., it should have been in the TSQL forum, anyway I started so I'll finish...
I persevered...
June 14, 2017 at 4:57 am
John,
I've just run some tests with your revised script and it works exactly as I was hoping.
Thank you so much for doing that for me, greatly appreciated!
Regards.
Joe
September 28, 2016 at 4:57 am
Hi John, I didn't realise that I could have just leave the logical name as is, I thought by doing that it would be an identical restore in every respect...
September 28, 2016 at 4:24 am
I'm probably not using the correct terminology. Maybe 'like' would be a better term.
I was hoping to do something like this...
UPDATE [Table2]
SET [CCode] = (SELECT [CCode] FROM [Table1]...
July 30, 2016 at 3:43 pm
Hi Kevin, I didn't realise that there was such an issue in using a scalar function, the database that I'm using is not using huge record numbers so I thought...
June 14, 2016 at 1:44 pm
Thanks for the improvement Lynne, I'm guessing table valued functions are more efficient than in-line scalar valued functions?
June 14, 2016 at 1:33 pm
Thank you so much for the replies this is what I ended up doing as a Scalar-Valued Function
CREATE FUNCTION [dbo].[GetHarvestYear] (@InputDate datetime)
RETURNS int
AS
BEGIN ...
June 14, 2016 at 1:03 pm
Thanks Eirikur, that's awesome...!
Thank you for taking the trouble to give me such a comprehensive example, you've given me another road to go down which I'll pursue.
You are all so...
January 6, 2016 at 11:37 pm
Thank you so much guys for your useful tips and SQL snippets.
I will follow your advice and create a pre-populated calendar table, it makes total sense.
Cheers!
January 6, 2016 at 11:22 pm
Hey Piet thank you for your prompt reply.
Does that mean I have to create a calendar table that's already pre-populated with dates?
Is there not a way that TSQL can...
January 6, 2016 at 5:26 pm
Viewing 15 posts - 1 through 15 (of 23 total)