Forum Replies Created

Viewing 15 posts - 781 through 795 (of 851 total)

  • RE: IDENTITY_INSERT Issue

    [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...

  • RE: IDENTITY_INSERT Issue

    [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...

  • RE: IDENTITY_INSERT Issue

    [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....

  • RE: Why does this WHERE condition take forever to execute?

    [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....

  • RE: Why does this WHERE condition take forever to execute?

    [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...

  • RE: IDENTITY_INSERT Issue

    [font="Verdana"]You need to specifically name the columns you are inserting into when you have identity insert on.[/font]

  • RE: Why does this WHERE condition take forever to execute?

    [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...

  • RE: Number of columns in composite key

    Lynn Pettis (2/3/2009)


    I'd never use 6th normal form. Why would you want a table for evey column in your database? Think of all the joins you need to...

  • RE: Number of columns in composite key

    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...

  • RE: CASE. Is this a legitimate SQL?

    riga1966 (2/3/2009)


    SELECT

    ci.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) =...

  • RE: CASE. Is this a legitimate SQL?

    [font="Verdana"]Poor SQL Server would have been getting confused over whether you wanted a select or an update there. :D[/font]

  • RE: Number of columns in composite key

    Lynn Pettis (2/3/2009)


    Actually, I've heard, but can't confirm, that if follow the rules of normalization far enough, you end up back where you started. Why you'd do that, I...

  • RE: Number of columns in composite key

    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...

  • RE: orthogonal relatonships between multiple tables

    [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...

  • RE: Number of columns in composite key

    ivana.andric (2/3/2009)


    Can anyone tell me are there any limits on how many columns should be in composite key? I have a unique combinations of 28 fields that I nedd to...

Viewing 15 posts - 781 through 795 (of 851 total)