Forum Replies Created

Viewing 15 posts - 47,851 through 47,865 (of 49,571 total)

  • RE: SQL STATEMENT HELP

    Grab the datemonthstarts function from here[/url] and use that instead of MONTH.

    Since you'll then be comparing datetimes, 1 Dec 2007 is < 1 Jan 2008

  • RE: Shy Site Promoter

    Woot! :w00t: :w00t: :w00t: :w00t:

    Congrats. It's most deservedly given.

    So, where and when's the party?

  • RE: Database Stack dump problem any ideas ??

    MarkusB (1/3/2008)


    Kevin is right about the IO messages which take too long, but in my experience these messages don't automatically lead to a stack dump.

    They don't. The stack dump...

  • RE: magic table in sql

    For completeness, and so no one gets the wrong idea about how to write triggers.

    A trigger fires once for a statement. The inserted and/or deleted tables will contain as many...

  • RE: When To Use Cursors

    Sharon Matyk (1/3/2008)


    2) add a value which is the difference (in INT) between each row's date and the date on the row above.

    This can be done with what I...

  • RE: Writing Triggers in SQL2000

    Yup. Pretty much. Just check what you need to audit. You don't want to do more than necessary. It shouldn't be necessary to og both the old and the new...

  • RE: magic table in sql

    karthikeyan (1/3/2008)


    select @Age = inserted.Age from inserted -- You can't use this table outside of trigger.

    And what happens if I insert more than 1 row in a single statement?

    -- How...

  • RE: Begin,RollBack,Commit

    Some comments on that.

    You have to check for an error after everty statement. @@Error only refers to the previous statement. If that ocmpleted succcessfully, then @@error = 0, otherwise it...

  • RE: A New Year

    Good luck on the job hunt. 😉

    I gave up on new years resolutions a while back but...

    Brush up on C# skills

    Spend more time on university work

    And a couple others I...

  • RE: Query is slow when variable is used

    When you use a variable in the where clause, the query optimiser cannot see the value of that cariable at the time the query is compiled and optimised. Since the...

  • RE: How do I delete excess transaction logs.

    Check that the tran log backups are running. How often do they run?

    Run this query for the DB with the problem. Please post what it returns.

    select name, recovery_model_desc, log_reuse_wait_desc from...

  • RE: How do I delete excess transaction logs.

    Is your database in full recovery mode?

    Do you have transaction log backups occuring regularly?

    Do you need to be able to resore this database to the moment of failure if something...

  • RE: What is use of FULL TEXT INDEX ? hOW & WHEN USED?

    Please don't cross post. It fragments replies and wastes people's time.

    Any replies to below thread please

    What is use of FULL TEXT INDEX

  • RE: Finding Current Month's First Day& Last Day

    Jeff Moden (1/2/2008)


    Heh... for the same reasons, I do the very same thing. In fact, I incorporated that same method into the SQL Standards I wrote for work because...

  • RE: Finding Page Splits

    Not what I'm looking for. Dividing the number of rows by the page count will get the average number of rows per page.

    What I'm trying to get is the...

Viewing 15 posts - 47,851 through 47,865 (of 49,571 total)