Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 5,841 total)

  • RE: Memory Management

    1) SP1 has a CRITICAL BUG that has a MANDATORY patch for it. You MUST at least apply that.

    2) SP1 has MULTIPLE (IIRC) memory leaks that will suck away...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: How to reduce the joins in sql querry

    Assuming the query can complete, run it with show actual execution plan enabled. Then start looking for a) huge disparities between estimated and actual rows and b) sort/hash spills...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: OUt of memory

    There are indeed memory leaks in SQL 2012 SP1+. I don't know that your dev box would be open to them tho.

    Did you set the max memory for SQL...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    I just LOVE Paul's posts!!

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    Are you REALLY REALLY REALLY sure the code is the same on both servers?!?! :Whistling:

    I was just looking for some simple action on the column, like a mod or...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    I don't have (unpaid 😎 ) time to give it a go, but I would look to unwind that logic into the SELECT statement if possible.

    Also, to validate...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Concat columns in Where clause

    In addition to what others have said another ramification of what you seek (pun intended!!) to do will also prevent the optimizer from getting good estimates on rows to be...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Calling SP with optional parameters - assignment not happening correctly...

    Looks like you need to test for the number of parameters that are NOT NULL and then redistribute the values based on that number (either 3 or 4 of them...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    1) Yep - that's a scalar UDF alright 😀

    2) At least it doesn't have ancillary data access!

    3) Looks like some kind of funky iterative logic that might be able to...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    shahgols (11/8/2013)


    I really appreciate your response and patience!

    If I run Profiler, the sql statement will never finish. haha

    I am using sp_whoisacitve. the CPU usage is much, muuuuch higher...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    shahgols (11/8/2013)


    Hi everyone and many thanks for your responses.

    I had already checked on differences between table schemas, indexes, data, and also on wait/locks/etc. but didn't find any differences. I...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Backup A Table - Structure and Data

    shindle 17293 (11/7/2013)


    I have a 64 million record table that I need to create temporary backups of.

    I am cutrently using the SELECT INTO... FROM... method but this doesn't create the...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    I am not at all convinced this is a plan thing. I would be more interested in waits on the production server. latching, locking, IO, CPU, etc.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scalar UDF different performance on different server

    shahgols (11/7/2013)


    Hi all,

    I have a query that calls on a UDF. In staging, has the same number of records and schema, it runs in 25 seconds. On...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: NUMA - Node

    eyespi20 (11/6/2013)


    SELECT node_id, node_state_desc, memory_node_id, online_scheduler_count,

    active_worker_count, avg_load_balance

    FROM sys.dm_os_nodes WITH (NOLOCK)

    WHERE node_state_desc <> N'ONLINE DAC' OPTION (RECOMPILE);

    What information does this give...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 2,311 through 2,325 (of 5,841 total)