Viewing 15 posts - 781 through 795 (of 851 total)
[font="Verdana"]Aha. Sorry. Final bit sprung to mind.
You want to assemble your dynamic SQL, and only do one exec. The "set identity_insert on/off" will only apply to the...
February 3, 2009 at 8:08 pm
[font="Verdana"]I rewrote your code somewhat, and removed the dynamic SQL. I just wanted to test that I was getting a correct list of table names, columns names and whether...
February 3, 2009 at 7:39 pm
[font="Verdana"]I'll have to have a look at the code... for starters though, I wouldn't mix using INFORMATION_SCHEMA with the sys tables. One or the other. Not both....
February 3, 2009 at 7:17 pm
[font="Verdana"]Oh, who knows. I haven't played with Oracle for a couple of years now, so maybe the best thing is to do the old "suck it and see" approach....
February 3, 2009 at 7:01 pm
[font="Verdana"]Does that actually work?
I know in Oracle, if you tried to put the filter criteria for the right hand side being empty into the ON clause, it didn't work as...
February 3, 2009 at 6:46 pm
[font="Verdana"]You need to specifically name the columns you are inserting into when you have identity insert on.[/font]
February 3, 2009 at 6:36 pm
[font="Verdana"]Welcome to the joys of execution plans. :w00t:
From experience, the left outer join always tend to perform at least as well as the not exists. So I always...
February 3, 2009 at 5:54 pm
Lynn Pettis (2/3/2009)
February 3, 2009 at 3:37 pm
Lynn Pettis (2/3/2009)
I am aware of up to 6th normal form (no nulls).
From what I understand that was never formally "Codd-ified". I'd be interested to read some reference on...
February 3, 2009 at 3:28 pm
riga1966 (2/3/2009)
SELECTci.IG_SRC_SYS_KEY = CASE
WHEN LEFT(ci.IG_CD,1) = 'D' THEN (SELECT SRC_SYS_KEY FROM SOURCE_SYSTEM_REF WHERE SRC_SYS_ID = 'DDA')
WHEN LEFT(ci.IG_CD,1) = 'G' THEN (SELECT SRC_SYS_KEY FROM SOURCE_SYSTEM_REF WHERE SRC_SYS_ID = 'GRM')
WHEN LEFT(ci.IG_CD,1) =...
February 3, 2009 at 3:25 pm
[font="Verdana"]Poor SQL Server would have been getting confused over whether you wanted a select or an update there. :D[/font]
February 3, 2009 at 3:21 pm
Lynn Pettis (2/3/2009)
February 3, 2009 at 2:39 pm
Lynn Pettis (2/3/2009)
Or you need to use a SID, a synthetic id.
[font="Verdana"]I suspect that will be the end result of a re-design, but first an introduction to the five "normal...
February 3, 2009 at 2:26 pm
[font="Verdana"]Okay, I am probably going to anger some purists with this suggestion, but let's be pragmatic here.
If you are trying to come up with a database design that ensures that...
February 3, 2009 at 2:24 pm
ivana.andric (2/3/2009)
February 3, 2009 at 2:19 pm
Viewing 15 posts - 781 through 795 (of 851 total)