Forum Replies Created

Viewing 15 posts - 3,781 through 3,795 (of 5,394 total)

  • RE: Cursor within a UDF

    It took me a while to get it to work...

    Thanks for the feedback, glad it works for you.

  • RE: Variable usage in Where clause

    As Dave pointed out, the IN predicate doesn't work that way.

    You may also concatenate in a safer way, using FOR XML PATH.

    Concatenating variables in the SELECT list doesn't always work...

  • RE: Cursor within a UDF

    OK, looks like I've got it working:

    ALTER FUNCTION [dbo].[alias2dnsname] (

    @alias NVARCHAR(50)

    )

    RETURNS TABLE

    AS

    RETURN (

    WITH zones...

  • RE: optimising makes it 10 times worse?

    TheSQLGuru (10/15/2010)


    amazingly good maintenance stuff here: ola.hallengren.com. You can have it update statistics on indexes that are not defragged at all or are only reorg'd.

    Thanks for the tip,...

  • RE: Parallelism deadlock

    It will probably be listed in the top 20 queries by CPU:

    SELECT TOP 20

    query_stats.sql_handle,

    SUM(query_stats.total_worker_time)...

  • RE: Parallelism deadlock

    Is it OLTP or OLAP?

    OLTP databases that use 100% CPU equals (most often) evil query. Find the offending query and fix it.

    With a typical OLTP workload, CPU should stay low.

    If...

  • RE: Bes practice for working on a production server

    steveb. (10/15/2010)


    one thing you could do to make it a bit more obvious what server you are connecting to, is to define custom colours for each server under registered...

  • RE: Bes practice for working on a production server

    I use a special keyboard without the F5 key. 😛

    Seriously, the main thing is avoiding experiments in production.

    You experiment on the test server, then move working code to production.

    Never, ever...

  • RE: optimising makes it 10 times worse?

    Thanks George.

    I think I'm on the right track, but sometimes, since I set up this plan, the optimizer decides to pick a very odd plan.

    Odd plan + 75 mln rows...

  • RE: optimising makes it 10 times worse?

    When you're telling the truth, nobody should feel offended! 🙂

  • RE: optimising makes it 10 times worse?

    george sibbald (10/14/2010)


    Gianluca Sartori (10/14/2010)


    My index rebuild job updates statistics with sp_udatestats.

    Just in case you did not realise Gianluca this step may be superfluous. If your index rebuild is the...

  • RE: optimising makes it 10 times worse?

    Ninja's_RGR'us (10/14/2010)


    optimising makes it 10 times worse?

    Then I would suggest that someone sucks at optimizing :hehe:

    I'm glad you got this figured out.

    :hehe::hehe::hehe::hehe: This is defintely the case with me!

  • RE: optimising makes it 10 times worse?

    Fortunately this is not what I'm doing. I'm setting fillfactor only for two tables, that are the most important tables in my database. They're heavily read and written, most updated...

  • RE: DBCC FREESYSTEMCACHE equivalent?

    [EDIT] Removed

  • RE: DBCC FREESYSTEMCACHE equivalent?

    Thanks for the suggestions, but I tried both and they don't seem to dellocate internal objects.

    Probably that's the reason why MS decided to ship FREESYSTEMCACHE with SQL2005.

Viewing 15 posts - 3,781 through 3,795 (of 5,394 total)