Viewing 15 posts - 1 through 15 (of 207 total)
You would strengthen your argument by adding non Microsoft examples of when a cursor is an appropriate option. The only time I have personally found cursors a better option has...
September 9, 2016 at 4:55 am
I liked the article. A new technique to add to my toolset. I did play around with it to remove the Temp Tables and at least on my dev server,...
September 7, 2012 at 1:02 pm
There are a few ways to do this. Both are workarounds but should do what you need.
1)Without using a script task.
a.Place an empty sequence container in the inner for each...
August 10, 2012 at 7:21 am
There is a way to get NULL values back in an unpivot. It's not pretty but it works.
IF OBJECT_ID('tempdb..#Orders','U') IS NOT NULL
DROP TABLE #Orders
-- DDL and sample data for...
August 2, 2012 at 9:50 am
It's a good article and approach. I am confused however as to how you are getting just one email to send. Internally where I work we use a custom email...
April 12, 2012 at 9:52 am
In terms of data types, I would not use a FLOAT to define a monetary field. FLOAT is an approximate numeric. You should be using NUMERIC or DECIMAL (You can...
November 4, 2011 at 11:26 am
Performance is dependant on the amount of data and indexing. Even with indexes on the columns you are using for the ROW_NUMBER(), you still need to pull all results and...
August 2, 2011 at 6:36 am
Try enabling error handling and spit the rows that are failing into a flat file for examination. This will allow you to narrow your investigation to what is causing the...
May 26, 2011 at 1:12 pm
I'm going to second Elliot. We had a process I recently converted to use ssis to perform the insert vs the stored procedure and saw an immense improvement in performance....
May 26, 2011 at 11:54 am
Looking through your Schema.txt file, the first thing I noticed was a lack of indexes. You have alot of joins goin on in the functions and the more data you...
April 19, 2011 at 7:14 am
Nevermind, I found what I needed.
For the Set argument, I used a case statement.
SUM(
CASE [Dimension].[Attribute].CURRENTMEMBER
WHEN [Dimension].[Attribute].[All] THEN [Dimension].[Attribute].CURRENTMEMBER.CHILDREN
ELSE [Dimension].[Attribute].CURRENTMEMBER
END,
...
)
November 2, 2010 at 7:30 am
You need to use the tertiary operator.
(CONDITION) ? Expression if True : Expression if false.
EXAMPLE:
(ISNULL(DateColumn) ? (DT_DATE)"1900-01-01" : Your date experession
October 12, 2010 at 8:22 am
Oli is correct. You want to use Merge Replication. no reason to reinvent the wheel when SQL Server has something already available that will do what you need.
October 12, 2010 at 8:04 am
David Ziffer (10/6/2010)
October 6, 2010 at 10:41 am
da-zero (10/6/2010)
you can use a left outer join in your data source. Join your source (staging) table with the destination (dimension/fact table) with the no lock hint. If...
October 6, 2010 at 9:32 am
Viewing 15 posts - 1 through 15 (of 207 total)