Forum Replies Created

Viewing 15 posts - 1,771 through 1,785 (of 18,926 total)

  • RE: CreateTempTable function?

    AccidentalDBA:) (10/22/2011)


    Depending on what you are doing i like to user variable temp tables, there is no need to drop them at the end because once the script as completed...

  • RE: CreateTempTable function?

    NNNNNNNNNNNNNOOOOOOOOOOOOOOOOOO

    The correct way is simply this

    IF OBJECT_ID('temdb..#tblname', 'U') > 0

    DROP TABLE #tblname

    The short answer is that you use a @table variable only when you...

  • RE: Vendor suggesting their issue is a limitation of sql server

    #5 on the +1.

    This is my setup as well. I actually have 4 full backups running exactly at the same time + a log backup (all kicking off extactly...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (10/21/2011)


    Jack Corbett (10/20/2011)


    On a more serious note, I'd like to put together a new presentation, but I'm a bit short on ideas. Any suggestions?

    Throw out an old...

  • RE: BI Developer Opportunity in Birmingham, UK

    No I'm in Canada.

    I live in a small city and consult in a big one so I get lower living costs (actually more for the same money) with higher consulting...

  • RE: "Print" inside stored procedure- Performance

    Any issue with the network?

    that would either break the application or slow down the network. With the 2nd option reallllllllllly unlikely unless you're talking about GB of prints per...

  • RE: Corrupted Execution Plan

    GilaMonster (10/21/2011)


    Loner (10/21/2011)


    I used

    select *

    from @table

    INNER JOIN table1

    INNER JOIN table2

    WHERE...

    That's just about guaranteed to produce a sub-optimal execution plan. One of the senior devs on the Query Optimiser team explicitly...

  • RE: BI Developer Opportunity in Birmingham, UK

    I'm definitely higher end than avg but I don't even look at a job under 100K.

  • RE: Corrupted Execution Plan

    Loner (10/21/2011)


    I used

    select *

    from @table

    INNER JOIN table1

    INNER JOIN table2

    WHERE...

    Yes that's one of the bad ways to use it.

    #temp is definitely the way to go here unless you are debuging and...

  • RE: Corrupted Execution Plan

    Loner (10/21/2011)


    Here is the parameter plan.

    Yes, the parameter is coming in as comma delimited.

    We need the ACTUAL plan, this is estimated.

    We need it for both good & bad executions.

  • RE: Corrupted Execution Plan

    GilaMonster (10/21/2011)


    Table variables and large amounts of data? Hell yes that's a problem unless all you're doing is a direct select from the table variable, no joins, no filters.

    My guess...

  • RE: Corrupted Execution Plan

    Ninja's_RGR'us (10/21/2011)


    Ninja's_RGR'us (10/21/2011)


    Please post the good & bad actual execution plan.

  • RE: Truncate Transaction Log

    Stefan Krzywicki (10/21/2011)


    Sure enough, that's what the software was trying to do. I told them this doesn't work in SQL Server 2008 and I haven't heard back since.

  • RE: Enable/Disable Trigger

    You might try a double exec :

    EXEC('USE whatever;

    EXEC(''disable here'')

    ')

    Edit 1 : I might have misunderstood the using syntax you were talking about!

    Edit 2 : Gail's syntax will work after...

  • RE: Corrupted Execution Plan

    Loner (10/21/2011)


    I also used table variables to store large amount of data, would it be the problem.

    How do I post the execution plan?

    1

    Save it as .sqlplan then when you post...

Viewing 15 posts - 1,771 through 1,785 (of 18,926 total)