Forum Replies Created

Viewing 15 posts - 1,261 through 1,275 (of 3,233 total)

  • RE: Do Loop in T-SQL

    Another alternative would be to use SSIS to import and validate your files prior to loading them in your database.

  • RE: Is this normalized?

    In addition to what everyone else has said, I would also tighten up your use of NULLs. Setting your columns up as NOT NULL by default is a good...

  • RE: Isnull behavior

    Yes. Combining string values with the '+' operator results in a NULL any time one of the values contain a NULL. This is expected behavior. Since NULL...

  • RE: Denormalize/Consolidate

    declare @test-2 TABLE (

    ID int,

    Code int,

    CodeType char

    )

    INSERT INTO @test-2

    SELECT 1, 10, 'A'

    UNION

    SELECT 1, 20, 'B'

    UNION

    SELECT 2, 15, 'A'

    UNION

    SELECT 2, 25, 'B'

    UNION

    SELECT 3, 35, 'A'

    UNION

    SELECT 3, 45, 'B'

    SELECT * FROM @test-2

    SELECT...

  • RE: execute step

    Joshi (7/29/2009)


    hmm thats interesting, I don't have "execute task" and "edit breakpoints".

    Thanks again

    Where are you trying to execute the step from? What Adrian showed you is from BIDS.

  • RE: Partitioning tables

    So back to the question at hand, how to duplicate your SP logic within SSIS.

    This on is pretty simple. You'll need a data flow with a flat file source...

  • RE: Will IS NULL work for IF criteria

    My professional opinion would be that you're time would be better spent mastering non-cursor solutions and any other effort is wasting your time. Why spend so much time working...

  • RE: Will IS NULL work for IF criteria

    I can't help but comment on the other few threads that you've started regarding advice on using cursors. Specifically, you asked in one thread about the use of nested...

  • RE: Will IS NULL work for IF criteria

    Iron Chef SQL (7/28/2009)


    John Rowan (7/28/2009)


    Did you try it?

    DECLARE @var int

    IF @Var IS NULL

    SELECT 'It Works'

    ELSE

    SELECT 'Nope'

    Doesn't work 🙁 even if I change it to <=0

    What do you mean...

  • RE: Will IS NULL work for IF criteria

    Did you try it?

    DECLARE @var int

    IF @Var IS NULL

    SELECT 'It Works'

    ELSE

    SELECT 'Nope'

  • RE: Partitioning tables

    OK, so back to the question of why? What is the purpose of doing this, are you using this data elsewhere?

    We're getting close by the way.....

  • RE: Partitioning tables

    Lynn Pettis (7/28/2009)


    I'm sorry but the second INSERT into Table1 has me totally confused.

    I'm glad I'm not alone! 🙂

  • RE: Partitioning tables

    The second INSERT statement in your example shows Table1 being outer joined back to itself on it's key column. An outer self-join on the key column with the IS...

  • RE: Partitioning tables

    What is the deal with table1? Is this a temp table, table variable? What are you trying to accomplish with it?

  • RE: Partitioning tables

    If you are staging the data in a table and then using a stored procedure to 'link' those rows to related data and insert them into your destination table, then...

Viewing 15 posts - 1,261 through 1,275 (of 3,233 total)