Forum Replies Created

Viewing 15 posts - 1,996 through 2,010 (of 2,462 total)

  • RE: query with multiple left join very slow

    massimo.valtolina (3/28/2010)


    the strange thing is that in another db, virtually identical, i don't have this problem.

    Data Volume can be different or indexes/statistics might be out of dated. can you...

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

  • RE: Records missing

    Sudarsan Srinivasan (3/25/2010)


    ROLLBACK in CATCH block...

    What else you have in CATCH box ? means any error message or error code syntax?

    Bcoz that will help you/us to get the...

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

  • RE: Records missing

    Sudarsan Srinivasan (3/25/2010)


    ROLLBACK in CATCH block...

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

  • RE: help with the solution for the alert job

    EXEC sp_cpu_proc

    IF (DATEPART(mi, GETDATE()) = '00')

    EXEC sp_memory_proc

    Add above code in job and schedule it for every 1 min.For CPU,it will work for every new hour( ex: 1 AM, 2 AM,...

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

  • RE: TempDB Settings

    Mani-584606 (3/29/2010)


    How to know whether tempDB is heavily used by the application or not? where to check this?

    You can refer this link

    Sys.dm_exec_requests DMVs to find the currently active requests, their...

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

  • RE: NULLIF

    Thanks to all for your replies, i got the point.

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

  • RE: SQL Agent

    Additionally Are you taking backup of MSDB ?

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

  • RE: SQL Agent

    Did you have SP1 patch recently?

    Whats values you are getting with it?

    select value, value_in_use from sys.configurations where name = 'Agent XPs'

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

  • RE: NULLIF

    Why it is treating 0 and '' (Blank) same ? in select nullif( 0, '')

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

  • RE: NULLIF

    Hi Vyas, can you please explain it with my sql code.?

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

  • RE: Who's credentials are used to "invoke" a scheduled job?

    Uncle Moki (3/26/2010)


    Thanks Bhuvnesh. But that's soft of like answering, "Yes" to a three part question. 😉 I'm trying to figure out HOW to control the security...

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

  • RE: Table partitioning and MAX queries performance problem

    peterjonk (3/26/2010)


    select max(id) from tbl_test

    first of all this query never go for index seek as it doesnt contain any where clause

    and second, if this table has only one...

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

  • RE: Who's credentials are used to "invoke" a scheduled job?

    I think you should have separate account to run jobs.

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

  • RE: not able to get data for user info from sysusers and database_role_members system views

    Your query is not showing any result as "TEST" login is not db_owner (as your query will only work for db_owner)

    and you can use use youydb

    go

    SELECT P.name

    FROM sys.database_principals AS...

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

  • RE: Do i need here any index ???

    Thanks a lot 🙂

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

Viewing 15 posts - 1,996 through 2,010 (of 2,462 total)