Forum Replies Created

Viewing 15 posts - 286 through 300 (of 522 total)

  • RE: Best Practice

    Hugo Kornelis (9/4/2008)


    Christian Buettner (9/4/2008)


    I have adjusted my post above to remove the wrong information.

    .... that I seem to have overlooked thus far. And now I find myself wondering what...

  • RE: Best Practice

    dunnjoe (9/4/2008)


    Chris,

    Doesn't the second solution have to do the same B-tree traversal?

    Good question, today, and good discussions!!

    Joe

    Hi Joe,

    yes it does.

    I assume I have not cleared the table between my tests.

    Therefore,...

  • RE: Best Practice

    Nice question, but not "totally" deterministic in my opinion.

    What If I ensure consistency through the transaction isolation level already?

    SET TRANSACTION ISOLATION LEVEL REPEATABLE READ

    BEGIN TRANSACTION

    IF NOT EXISTS... INSERT...

    COMMIT

    Edit: Deleted...

  • RE: Porcess Range IDs

    Hi dans,

    You might try something like in the attached example.

    I have not spent too much time verifying it, so it might contain a few errors.

    But the concept might be helpful.

    I...

  • RE: Script system stored procedures in master?

    rbarryyoung (9/3/2008)


    Here's what I get when I execute your script:

    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Msg 9421, Level 16, State 1, Line 5

    XML parsing: line 149, character 30, illegal name character

    Hm, I should have tested against...

  • RE: Script system stored procedures in master?

    Try this one:

    DECLARE @A nvarchar(max)

    SELECT @A = ISNULL(@A,'') + OBJECT_DEFINITION(object_id) + '

    GO

    ' FROM sys.procedures

    SELECT CAST(@A AS XML)

    Explanation:

    1. Use OBJECT_DEFINITION to get the full script of the object in nvarchar(max)

    2....

  • RE: Local Temporary Tables and Table Variables

    GilaMonster (9/1/2008)


    rbarryyoung (9/1/2008)


    Of course we use a startup procedure to define the UDT's in TempDB.

    Does defining them in model work as well?

    According to this article, yes

    http://www.sqlservercentral.com/articles/Advanced/3104/

  • RE: Simulating memory pressure

    Hugo Kornelis (9/1/2008)


    If this is the compliment it looks like, then I thank you for it.

    Yes, it was a compliment (although a "passive" one ;-). You are welcome.

  • RE: Simulating memory pressure

    Hi skyline666!

    I have turned off the daily notification, therefore I don't get the author from there.

    And I usually use the link on the left menu and therefore missed the QOTD...

  • RE: Simulating memory pressure

    Hm, I am not sure whether I am correct, but from the QOTD, it is not clear whether the several steps involve the same tables or different tables. So DROPCLEANBUFFERS...

  • RE: Counts Puzzle

    Aleksandr Furman (8/27/2008)


    skyline666 (8/27/2008)


    Yes thats a good point, temporary tables only exist for the life of the stored procedure (when prefixed with one #), I temporarily forgot about that ;).

    That's...

  • RE: Counts Puzzle

    YeshuaAgapao (8/26/2008)


    It don't, but you wouldn't want to see this coding practice (not dropping temp tables) in real applications, so one would want to set an example for that for...

  • RE: Software/Database Development Hiring Practices

    This is an interesting conversation. But it also reminds me that we all often are not what we make others believe we are.

    The best examples are the rituals we...

  • RE: Boot Page

    Mark D Powell (8/21/2008)


    But Booksonline also contains this quote "Log files do not contain pages; they contain a series of log records."

    Blame MS not the author or question as I...

  • RE: Boot Page

    Christian Buettner (8/21/2008)


    I think the answer is incomplete, the log file also contains the boot page:

    One of the system pages stored in both the primary data file and the first...

Viewing 15 posts - 286 through 300 (of 522 total)