Viewing 15 posts - 16 through 30 (of 30 total)
I knew I was missing something. So obvious now :rolleyes:
Many thanks John, much appreciated 😀
July 19, 2016 at 5:02 am
I've always used this 🙂
USE master;
GO
ALTER DATABASE MyDatabase
SET SINGLE_USER
WITH ROLLBACK IMMEDIATE;
ALTER DATABASE MyDatabase
SET MULTI_USER;
GO
July 18, 2016 at 3:45 am
Have you tried enabling the UDP ports 1433 (default instance) and 1434 (names instances) in the firewall on the server (incoming & outgoing)? I have found this helps in...
May 19, 2016 at 3:12 am
Thanks for all your help guys 🙂
April 13, 2016 at 9:49 am
drew.allen (4/12/2016)
smw147 (4/12/2016)
Thanks for that 🙂 Never heard of LEAD before. Very interesting.
LEAD and LAG were introduced with SQL2012. You won't be able to use them if you...
April 13, 2016 at 6:49 am
BWFC (4/12/2016)
WITH dates AS
I think there's a mistake on your results though. You've got 2014-02-29 for the end date for PremiumID2. Should that be 2016-02-29?
Thanks 🙂 Yes,...
April 12, 2016 at 8:34 am
Thanks for that 🙂 Never heard of LEAD before. Very interesting.
April 12, 2016 at 8:33 am
Excellent. Thanks for all your help 🙂
September 30, 2015 at 8:02 am
Ah yeah, and let SQL handle the year change. Nice one 🙂
I've come across another stumbling block. I think when the end of each tax year is reached, a...
September 30, 2015 at 7:50 am
Hi Lweis,
Thats great, many thanks. I'll start trying to digest that. One complication I have realised though is it seems the designer of the source database didn't make...
September 30, 2015 at 3:06 am
Hi Ken. That's great, many thanks for that. Much appreciated. The backend is actually Access, but I use these forums for SQL Server queries, so assumed this particular...
June 30, 2015 at 10:08 am
Hi all,
I tried looking at these but was unable to get it to work as I wanted. In the end I set a maximum of 10 columns, and aliased...
April 13, 2015 at 3:45 am
I agree. I must confess I'd never heard of them before, but I'm pretty new to SQL development and admin.
In this case, the SQL statement needed to run with a...
September 16, 2014 at 2:19 am
Thanks all. The CTE and rbednarek's solution both worked.
September 15, 2014 at 2:50 am
Guys, this is perfect. Thanks for your help :-):-)
August 22, 2014 at 7:07 am
Viewing 15 posts - 16 through 30 (of 30 total)