Forum Replies Created

Viewing 15 posts - 211 through 225 (of 2,462 total)

  • RE: I need an exclusion query again. My totals are wrong.

    Sean Lange (9/25/2013)


    IM.ItemCode BETWEEN '999999' AND 'CL00000'

    AND IM.ItemCode NOT IN ('001920', '001921', 'CL01926', 'CN00229', 'CN00230')

    [/code]

    Sean,

    Talking about the selection of "NOT IN" over "Between" i have experienced that...

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

  • RE: Tempdb data file fills up very often

    AlexMcCo (9/25/2013)


    You do not need tempdb ndf file as large as you can make them. It is more than enough to put as 50 mb each. They will expand as...

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

  • RE: Point in time restore Not from latest .BAK file

    Grant Fritchey (9/25/2013)


    Log backups are different.

    But how does the LSN get matched ? i mean their sequence because that will be required to ordered restore

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

  • RE: I need an exclusion query again. My totals are wrong.

    frdrckmitchell7 (9/25/2013)


    No, it's not part of an index in this scenario

    Then study the related exec plan and see if it ask for improvement(index addition or updation)

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

  • RE: Max Memory

    gary1 (9/24/2013)


    I noticed that the sql queries are causing the PLE to drop and I'm trying to find the exact queries.

    If there are culprit SP then recompile them...

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

  • RE: Point in time restore Not from latest .BAK file

    i second Talib123 here

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

  • RE: I need an exclusion query again. My totals are wrong.

    Also check If itemcode must be part of any index , to get the result faster.

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

  • RE: Timeout in select * from [master].sys.all_objects and SQL Prompt timeout

    check the states of all sys data bases too

    select state_desc, * from sys.databases.

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

  • RE: Timeout in select * from [master].sys.all_objects and SQL Prompt timeout

    try sp_lock and see where you have LOCK- X records , check the Spid for that in Sp_who2

    and try this too

    SELECT

    db.name DBName,

    tl.request_session_id,

    wt.blocking_session_id,

    OBJECT_NAME(p.OBJECT_ID) BlockedObjectName,

    tl.resource_type,

    h1.TEXT AS RequestingText,

    h2.TEXT AS BlockingTest,

    tl.request_mode

    FROM...

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

  • RE: I need an exclusion query again. My totals are wrong.

    unforturnately ... you probably wont get any response . because people here can help you when you help them/us to help you

    MEANS

    Post table defintion with sample data...

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

  • RE: Timeout in select * from [master].sys.all_objects and SQL Prompt timeout

    bryan 29523 (9/24/2013)


    It's a production server, but there only 6 databases. I am considering detaching the DBs, wiping out the instance and re-attaching them.

    NO.......

    Dont try this ..there are very...

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

  • RE: Pro Active DBA

    jacop (9/16/2013)


    what can i do to be pro active in this new position?

    In your daily list , there must be some monitoring job , some check list...

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

  • RE: Tempdb data file fills up very often

    IgorMi (9/23/2013)


    What is the recovery model of your TempDB? Default is SIMPLE, and it should be.

    can we change it ? ??

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

  • RE: Application stopped during Rebuild Index?

    ananda.murugesan (9/25/2013)


    Can we create both operation in one single jobs via Mintenance plan?

    Yes. on the left pane : maintenance plan task .. you will find both reorganize and rebuild...

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

  • RE: TempDB - same files

    use tempdb

    go

    select filename, * from sysfiles

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

Viewing 15 posts - 211 through 225 (of 2,462 total)