Viewing 15 posts - 1,126 through 1,140 (of 1,640 total)
Thanks both,
To bitbucket-25253
I think your added statment only considers the target is null,
But how about the source end is Null, no matter what, I would like to...
January 10, 2012 at 5:32 pm
Thanks, I am not using look up.
I have read the series before, it becomes quite complicated by using those.
I also read somewhere ever since SQL server 2008 has the new...
January 9, 2012 at 2:40 pm
!Aaron Aardvark! (1/9/2012)
Perhaps these will help:http://www.kimballgroup.com/html/08dt/KU107_UsingSQL_MERGESlowlyChangingDimension.pdf
Thanks, the first article is certainly helpful for my future reference, but I just didn's see anywhere it mentions to handle pk or forign key...
January 9, 2012 at 2:26 pm
GSquared (1/9/2012)
Update dbo.MyStagingTable
set RowCheck =...
January 9, 2012 at 2:20 pm
I know I need to load the primary key table first, then load forign key table.
The problem is from the source flat files, sometimes they have data integrity issue, we...
January 9, 2012 at 1:48 pm
Paul, while I am trying above SQL, I got an error:
Msg 102, Level 15, State 1, Line 13
Incorrect syntax near '@T'.
Cannot figure out why?
Thanks
January 9, 2012 at 12:26 pm
Thank you a lot.
It seems Merge statement is a very helpful tool for data update/delete/insert load.
But at the same time, I understand it is not so flexible to add other...
January 9, 2012 at 12:02 pm
Thanks, Jeff,
the query works perfect, I was not sure how to calculate the value by using a counter, now I learn from you that I can use row number...
January 8, 2012 at 5:53 pm
well, the script is to update a column A based on a column B in the same table.
If column B value is null, then use A will be concatenate with...
January 6, 2012 at 10:19 pm
sekalps (1/5/2012)
1. If the NULLs are denoted by empty values, then set the "Retain NULL values setting" by checking on the check box in the Flat File source in...
January 6, 2012 at 9:18 am
Thank you very much, this is very helpful.
December 21, 2011 at 10:28 am
Koen Verbeeck (12/16/2011)
* you can use the MERGE JOIN to join the two datasets together. The input needs to be sorted, so if your flat file has...
December 16, 2011 at 9:17 am
Thanks all for the ideas.
The reason I use cast the birthdate is because the birthdate column is varchar in a staging table.
The staging table comes from a ssis package load...
December 11, 2011 at 10:50 am
Thanks,
My table A has 400000 row counts, but the table B only has 100 row counts.
So I think if I should do a join of two tables to insert, or...
December 9, 2011 at 6:49 pm
Viewing 15 posts - 1,126 through 1,140 (of 1,640 total)