Forum Replies Created

Viewing 15 posts - 35,521 through 35,535 (of 49,557 total)

  • RE: Searched Case execution

    Most of the select statement is a non-issue.

    Run this, see what it produces. There's got to be something subtly wrong with the values somewhere.

    SELECT

    ser.Patient_Primary_Policy_Carrier_ID,

    '[' + ISNULL(cval1.Control_Value1,'') + ']'

    cval1.Control_Value1,

    CASE

    WHEN ser.Patient_Primary_Policy_Carrier_ID =...

  • RE: MAXDOP Advice

    Kwisatz78 (12/3/2009)


    Ok this is where my understanding is weak, how can I see what queries have CXPACKET or SOS_Scheduler_yield waits? and further to that how do I then look...

  • RE: Replace data and log files of master

    luckysql.kinda (12/3/2009)


    Do you mean I have to install sql server again if I don't have master DB backup.

    No. The SQL installer can, if run with specific parameters, rebuild the master...

  • RE: Log File runing.... Disk out of space

    atramard (12/3/2009)


    it look like i am gone have to limit those log growth....

    Why?

    What you should have is alerts that warn you when the disk is getting full (80% as...

  • RE: MAXDOP Advice

    Kwisatz78 (12/3/2009)


    Yesterday I did a reset of the wait stats and since then in the view sys.dm_os_wait_stats CXPACKET is the second highest with a count of 3271668 with SOS_SCHEDULER_YIELD highest...

  • RE: Rebuild Index

    Ok, looked around and seems there's both definitions of internal and external fragmentation. I usually use them to mean fragmentation internal to SQL (and fixable within SQL) and fragmentation external...

  • RE: Performance optimization on huge data

    Please post queries, table definitions, index definitions and execution plan, as per http://www.sqlservercentral.com/articles/SQLServerCentral/66909/

    One of the non-clustered index is having all the columns in that table.

    Why? Is that index used?...

  • RE: My san disk is about to full and I can't add other database on it.

    guptaajay1985 (12/2/2009)


    Thanks..Actually this is a critical scenario and to make changes in a running scenario is risky.

    It doesn't make the slightest difference how critical the situation is. You have to...

  • RE: Call stored proc from stored proc

    tnocella (12/2/2009)


    Create Procedure p_myproc1

    Begin

    SELECT 1

    End

    --- Proc 1 just returns a value of 1 through a select

    Create Procedure p_myproc2

    Begin

    Declare @Result int...

  • RE: Call stored proc from stored proc

    tnocella (12/2/2009)


    I tried that code, its actually executing the procedure and returning it as a result from the

    calling stored procedure.

    Well, yes. That's what you want isn't it?

    I basically...

  • RE: Searched Case execution

    Ok, don't know what the rest of the query looks like, but to be 100% sure that we're looking in the right place at the right rows, please complete and...

  • RE: Update statement fails ...

    J-F Bergeron (12/2/2009)


    SQL Server does not let you assign a value to a column when it COULD be returning more than 1 row.

    It does allow the scenario where returning...

  • RE: Update statement fails ...

    You're not relating the subquery in any way to the table that you're updating, so, for each row of the table that you're updating, ALL of the rows in the...

  • RE: Call stored proc from stored proc

    Declare @Result int

    exec @Result = sp_myprocedure @Param1, @Param2, @Param3

    Aside, don't name stored procedures sp_<whatever>. sp_ means system procedure and, if a proc is named that, resolution is first to the...

  • RE: Dropping a cached plan?

    shannonjk (12/2/2009)


    I am sure after testing several thousand times it had generated quite a few plans that are no longer the best suited for what I have now.

    There will...

Viewing 15 posts - 35,521 through 35,535 (of 49,557 total)