Forum Replies Created

Viewing 15 posts - 4,411 through 4,425 (of 9,715 total)

  • RE: incremental Load

    In SSIS, you can use a MERGE JOIN transformation task, I believe. Or you can use Slowly Changing Dimensions. It depends on your business rules, etc.

    Check them out in...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Setting the Identity in a temp table using a variable

    Here's another method:

    CREATE TABLE dbo.BrandieTemp (MyID INT NOT NULL, TestCol1 VARCHAR(35),

    TestCol2 VARCHAR(10));

    GO

    INSERT INTO dbo.BrandieTemp (MyID, TestCol1, TestCol2)

    VALUES (1,'Mickey','Mouse'), (2,'Donald','Duck'), (3,'Goofy','who?');

    SELECT MyID, TestCol1, TestCol2

    INTO #MyTemp

    FROM dbo.BrandieTemp;

    ALTER TABLE dbo.BrandieTemp

    ...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Setting the Identity in a temp table using a variable

    Eugene Elutin (5/17/2012)


    Brandie Tarvin (5/17/2012)


    ...

    I'm a little confused. Why don't you just ALTER the table and set AllocationID as an IDENTITY field? You wouldn't have to fuss with variables, then.

    Could...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: System.OutOfMemory Exception in SSRS

    Have you Googled the first part of the error?

    Also, this may not be related to the actual report but something to do with your hardware or software.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: SET or SELECT to assign a default value to a nullable variable

    Alexeins (5/17/2012)


    What is best way to write this statement?

    1)

    DECLARE @L_ZERO INT

    SELECT @L_ZERO = IdMyTable FROM MyTable WHERE ColumnRef = 1000

    SELECT ISNULL(@L_ZERO, 0)

    OR

    2)

    DECLARE @L_ZERO INT

    SET @L_ZERO = ISNULL((SELECT IdMyTable FROM MyTable...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Setting the Identity in a temp table using a variable

    SJanki (5/17/2012)


    I have a table Allocations with coulmns AllocationID , PaymentID , ….

    AllocationID is a PK.

    Depending on certain condition I have to insert multiple records in Allocations table.

    I get the...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Forgotten Tipples

    I tasted homemade grape schnapps one summer when I was in Austria. Delicious! I need to go find a good recipe for it to see if I can make it...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Must declare the scalar variable

    saidapurs (5/16/2012)


    I apriciate your responce & i agree with you but issue is i am not yet wrote any SP in my life. so while adding this once i requested...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Question: Immediate Exit of Stored Procedure?

    ColdCoffee,

    RAISEERROR would definitely work, but in this case, the dev specified that he wanted to exit without raising an error. Which limits the options down to RETURN().

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Question: Immediate Exit of Stored Procedure?

    mtassin (5/16/2012)


    capn.hector (5/16/2012)


    in any of my procedures that are user accessible i have a block at the beginning something like this:

    IF @Input <> (good input)

    BEGIN

    SELECT 'you have bad input'

    RETURN

    END

    kills it...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Question: Immediate Exit of Stored Procedure?

    Matt Miller (#4) (5/16/2012)


    Now - the examples aren't very good since they encapsulate everything in IF statements...

    Exactly the problem I was having when reading the entries. I hate BOL examples...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Question: Immediate Exit of Stored Procedure?

    Thank everyone for the relevant highlights and links. I can't believe I missed that.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Question: Immediate Exit of Stored Procedure?

    Really? The RETURN statement will stop a proc in mid execution?

    I'm looking over BOL on that and don't see any statements to that effect. That's why I posted here.

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Must declare the scalar variable

    saidapurs (5/16/2012)


    If possible please do the changes & update me.

    Just an FYI: This is a bad way to phrase a request for help. It raises the hackles of forum regulars...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

  • RE: Are the posted questions getting worse?

    SQLRNNR (5/16/2012)


    jcrawf02 (5/16/2012)


    Brandie Tarvin (5/16/2012)


    L' Eomot Inversé (5/15/2012)


    We have idiocies like proposals for an "absolute right to be forgotten" which means, for example, that someone serving a prison sentence for...

    Brandie Tarvin, MCITP Database AdministratorLiveJournal Blog: http://brandietarvin.livejournal.com/[/url]On LinkedIn!, Google+, and Twitter.Freelance Writer: ShadowrunLatchkeys: Nevermore, Latchkeys: The Bootleg War, and Latchkeys: Roscoes in the Night are now available on Nook and Kindle.

Viewing 15 posts - 4,411 through 4,425 (of 9,715 total)