Forum Replies Created

Viewing 15 posts - 1,471 through 1,485 (of 2,462 total)

  • RE: ORDER BY is creating problem

    Thanks Paul

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: When would be the order by faster ?

    @paul-2 : thanks for this informative description. 🙂

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Help on Table/Query tuning

    Selecting all data means either you have clustered index scan or table scan.see the execution plan , picture will be clear to you

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Child and parent Relation

    Yes its working with ISNULL

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Child and parent Relation

    Grant Fritchey (8/10/2010)


    I think this does what you need.

    --test table

    CREATE TABLE OrderTest

    (id INT,

    parentid INT NULL)

    --test data

    INSERT INTO OrderTest

    VALUES

    (1, NULL),

    (2, NULL),

    (3, NULL),

    (4, 1),

    (5, 1),

    (6, 2),

    (7, 2),

    (8, 3),

    (9, 3)

    --query

    SELECT *

    FROM OrderTest

    ORDER...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: WA_sys indexes (Who, where, why???)

    refer this

    http://technet.microsoft.com/en-us/library/cc966419.aspx

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: When would be the order by faster ?

    GilaMonster (8/10/2010)


    In the initial post, neither of the order by statements matched the clustered index

    Ok agree but see the below case with exec plan

    truncate table email_destination_bk

    insert into email_destination_bk

    select ut_stub,acct_id...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Child and parent Relation

    Sorry difficult play :-P, but desperate to see the reply

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: When would be the order by faster ?

    One of my Senior DBA told me that if we have "order by" clause according to source table then there would be page split during insertion as the data is...

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: ORDER BY is creating problem

    removed

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: When would be the order by faster ?

    John Mitchell-245523 (8/9/2010)


    This doesn't guarantee that the rows will be inserted in that order.

    thanks

    Then in which case , "order by" will be relevant for insert statement.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: ORDER BY is creating problem

    thanks a lot

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: The given value of type String from the data source cannot be converted to type bigint of the specified target column.

    use cast or convert function

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Sending mail with sp_send_dbmail

    basically your query SELECT Name FROM dbo.users will be executed in msdb database thats why you are not getting results

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • RE: Email escalation

    mirravi (8/6/2010)


    @copy_recipients = '345@abc.com;444@abc.com'

    i am sure your email address list will be huge.So better to add a distribution list in exchange server and add that it in "@copy_recipients" parameter.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

Viewing 15 posts - 1,471 through 1,485 (of 2,462 total)