Viewing 15 posts - 27,166 through 27,180 (of 59,101 total)
Megha P (3/22/2013)
you can also try below
;WITH CTE AS
(
SELECT docid,pages FROM #x
UNION ALL
SELECT C.docid,C.pages-1
FROM #x X INNER JOIN CTE C
ON X.docid = C.docid
AND C.pages-1...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2013 at 7:40 pm
polkadot (3/22/2013)
Has anyone else had a similar problem and solved it with something other than slowly changing dimension?
I will create a model of...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2013 at 7:35 pm
Evil Kraig F (3/21/2013)
Jeff Moden (3/21/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2013 at 7:29 pm
opc.three (3/21/2013)
If you...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2013 at 7:24 pm
david.alcock (3/22/2013)
Jeff Moden (3/21/2013)
david.alcock (3/21/2013)
SSIS is normally utilised when the copy/move is complex, if it involves data transformations, validations etc.
I'll go ahead an disagree with that. I've built some...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2013 at 6:51 pm
Lynn Pettis (3/23/2013)
I'm thinking this would work on SQL Server 2000 when you could update system tables.
I'm thinking the same thing but wanted to make sure because it sure would...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2013 at 6:41 pm
The following code doesn't work.
EXEC sp_changeobjectowner 'fn_DateTimeToISODate', 'system_function_schema'
It produces the following error in SQL Server 2008.
Msg 15411, Level 11, State 1, Procedure sp_changeobjectowner, Line 111
Database principal or schema 'system_function_schema' does...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 23, 2013 at 5:03 pm
Alan.B (3/21/2013)
The query below should do the trick. I don't know what day counts as "Media Start of Week" but I went with monday (isowk).
Oh, be careful now. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2013 at 7:09 pm
You're joining to an indeterminent value and at execution plan time, it can't determine what to join on and so it ignores the predicate. Look at the execution plan...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2013 at 6:47 pm
carlosaamaral (3/21/2013)
Sean Lange (3/21/2013)
carlosaamaral (3/21/2013)
MID=(CASE WHEN ID-100=0 THEN NULL
...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2013 at 12:11 pm
david.alcock (3/21/2013)
SSIS is normally utilised when the copy/move is complex, if it involves data transformations, validations etc.
I'll go ahead an disagree with that. I've built some killed ETL systems...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2013 at 12:07 pm
runal_jagtap (3/21/2013)
Why it would be overkill :w00t: explain me.. coz i am going to do it.. i dont know how to...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2013 at 12:02 pm
polkadot (3/20/2013)
K, thanks for the leads guys. Anyone want to add, feel free to do so. Appreciate all the input.Helen
Check the following link for the different types of...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2013 at 11:52 am
This is a classic problem and the classic solution, which runs on all versions of SQL Server, turns out to be quite fast.
--===== Create the test data.
...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2013 at 7:50 am
Vedran Kesegic (3/20/2013)
Never delete. On move, set enddate instead, and copy to new location with startdate=enddate+1. Add date filter to queries.
+100. A "Type 2 Slowly Changing Dimension" will work...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 20, 2013 at 6:33 pm
Viewing 15 posts - 27,166 through 27,180 (of 59,101 total)