Forum Replies Created

Viewing 15 posts - 4,396 through 4,410 (of 9,712 total)

  • RE: Theorhetical MERGE Question

    That's what I was wondering. Thank you, Gus. You have saved me some head-banging time.

  • RE: Nested loop outer join question

    When executing your query in SSMS, go to Query -> Include Actual Execution Plan. Alternately, if you don't want to run the query, you can use Query -> Display Actual...

  • RE: incremental Load

    Books Online has all the details on how to use the transformation tasks that I told you about. If you want to use SSIS, refer to that and the Microsoft...

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

    drew.allen (5/17/2012)


    I prefer this to prevent NULL values.

    DECLARE @L_ZERO INT = 0

    SELECT @L_ZERO = IdMyTable FROM MyTable WHERE ColumnRef = 1000

    Drew

    Drew, how does that prevent NULL from overriding your 0?

  • RE: Active and Inactive users

    If there's no auditing, then the only possible option is to look at Active Directory for those logins that are domain logins. If they're all SQL logins, there is nothing...

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (5/17/2012)


    GSquared (5/17/2012)


    Stefan Krzywicki (5/17/2012)


    Steve Jones - SSC Editor (5/17/2012)


    Thanks to new data mining abilities I think I read that they have the ability, to 75% or 90% or...

  • RE: Automation of SQL activities in Sharepoint

    If you want an answer, you should post the name of the solution you found and ask for reviews.

    There are several third party tools and not everyone knows them all...

  • RE: Active and Inactive users

    Unless you've been auditing the logins, there's no good way to tell. Nothing in the system, that I am aware of, can give you this information.

    Sorry.

    EDIT: On the other hand,...

  • RE: Nested loop outer join question

    John,

    Gail is asking you to save the execution plan as a .sqlplan and attach it to your post. Do you know how to do this?

  • RE: incremental Load

    You are welcome.

    Just an FYI, though. You posted your question in the wrong group. Try General under 2008 or Business Intelligence under 2005 (which covers both 2k5 & 2k8).

  • RE: Are the posted questions getting worse?

    Hey, Steve, can you change the birth year in my profile to read 1776, please?

    😀

  • RE: Are the posted questions getting worse?

    Revenant (5/17/2012)


    Stefan Krzywicki (5/17/2012)


    Steve Jones - SSC Editor (5/17/2012)


    Thanks to new data mining abilities I think I read that they have the ability, to 75% or 90% or something like...

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

  • 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

    ...

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

Viewing 15 posts - 4,396 through 4,410 (of 9,712 total)