Viewing 15 posts - 811 through 825 (of 2,463 total)
Thanks PB_BI. After a little more analysis I discovered that it was in fact an issue related to stale metadata which was resolved by restarted the SSAS service.
-- Itzik Ben-Gan 2001
April 26, 2016 at 9:24 pm
This will get you there except when the first or last fields are NULL. I'll let you figure that out or perhaps someone else will jump in to seal the...
-- Itzik Ben-Gan 2001
April 26, 2016 at 9:20 pm
Great Editorial Steve!
-- Itzik Ben-Gan 2001
April 26, 2016 at 7:58 am
mailtoashokberwal (4/25/2016)
Thanks 🙂I tried another approach with CTE and that works fine too.
WITH cte(a)
AS
(
SELECT 1
UNION ALL
SELECT a+1 FROM cte WHERE a<10000
)
SELECT * FROM cte OPTION(MAXRECURSION 10000)
That's going...
-- Itzik Ben-Gan 2001
April 25, 2016 at 7:24 am
No need to use Pivot at all. Here's Robert's sample data in a temp table (using a temp table so I can show you how to index correctly for my...
-- Itzik Ben-Gan 2001
April 24, 2016 at 6:56 pm
I would take a look at this book: Performance Tuning With SQL Server Dynamic Management Views. It will help you put together scripts you can use to determine which FK...
-- Itzik Ben-Gan 2001
April 24, 2016 at 1:17 pm
I would add:
You'll want to learn first how to import the XML data which should be pretty easy. Then how to save it as relational data - meaning that it's...
-- Itzik Ben-Gan 2001
April 23, 2016 at 8:16 pm
Eirikur Eiriksson (4/22/2016)
Alan.B (4/22/2016)
Nice to see this article again. Still awesome!:-PThanks Alan! When are you going to do a piece about your interesting work?
😎
Very soon sir, I have a few...
-- Itzik Ben-Gan 2001
April 23, 2016 at 3:17 pm
Nice to see this article again. Still awesome!:-P
-- Itzik Ben-Gan 2001
April 22, 2016 at 11:31 am
You can get rid of this statement:
drop table #tmp_datesforMonthAM
-- Itzik Ben-Gan 2001
April 22, 2016 at 5:59 am
First, welcome to SQLServerCentral. This sounds like fun.
What you want to do sounds simple and easy. A few questions:
1. Do you have an MS SQL Server you can use? If...
-- Itzik Ben-Gan 2001
April 21, 2016 at 5:49 pm
I said 2. What is wrong with me.
-- Itzik Ben-Gan 2001
April 21, 2016 at 10:16 am
John Rowan (4/21/2016)
-- Itzik Ben-Gan 2001
April 21, 2016 at 10:04 am
singhamitpal (4/20/2016)
-- Itzik Ben-Gan 2001
April 21, 2016 at 10:01 am
Con Alexis (4/20/2016)
e.g.
WITH Data AS
(
SELECT 1 AS ID, '1/1/1900' AS Date
UNION ALL SELECT 2, '1/1/1900'
UNION ALL SELECT 3, getdate()
UNION ALL SELECT 4,...
-- Itzik Ben-Gan 2001
April 20, 2016 at 7:29 pm
Viewing 15 posts - 811 through 825 (of 2,463 total)