Forum Replies Created

Viewing 15 posts - 6,766 through 6,780 (of 8,755 total)

  • RE: Slow running SQL server.

    davidwarner (10/16/2014)


    BTW i read i shouldn't make any changed to maxdop or cost of parra during business hours as SQL will dump the plan cache?

    That is correct, so be careful!

    It...

  • RE: Slow running SQL server.

    Quick thought, the cost threshold for parallelism is way too low, would suggest setting it to 50 for a start. Can you provide more information on the setup?

    😎

  • RE: Adding two month

    Further on Luis's post, do only one dateadd operation and use convert for the formatting.:cool:

  • RE: xml openrowset performance

    Done this on exactly the same version/edition and the performance is brilliant so no worries there. One thing to check though is the configuration of tempdb, rule of thumb, recommend...

  • RE: DateDiff between two consecutive rows

    Further on mickyT's post, the cross row referencing window functions are perfect for this kind of queries, here is a quick sample.

    😎

    USE tempdb;

    GO

    ;WITH SAMPLE_DATA(SD_ID,SD_DATE) AS

    ( SELECT * FROM (VALUES

    ...

  • RE: Create a stored procedure

    dhans123 (10/15/2014)


    I also got error

    Msg 156, Level 15, State 1, Procedure my_sp, Line 2

    Incorrect syntax near the keyword 'FROM'.

    Thanks for the question:-)

    Got the same on 2014, non of the options...

  • RE: Are the posted questions getting worse?

    Had few time-outs today, took me half an hour to respond to one post using the 3/4G on the mobile. Thought it was a carrier issue but then on a...

  • RE: Significant performance dropping when use CASE statement

    Grant Fritchey (10/15/2014)


    BOR15K (10/15/2014)


    Apologies for the complete blunt question.

    I have created Countries_View and placed the problematic CASE within the view and then JOINT Cities A table with Countries_View B

    and all...

  • RE: xml openrowset performance

    peacesells (10/15/2014)


    I am bulk inserting a whole bunch of xml files into a sql table using OPENROWSET. The problem is that this process is really really slow. Any idea...

  • RE: Significant performance dropping when use CASE statement

    BOR15K (10/15/2014)


    Eirikur Eiriksson (10/15/2014)


    BOR15K (10/15/2014)


    Apologies for the complete blunt question.

    I have created Countries_View and placed the problematic CASE within the view and then JOINT Cities A table with Countries_View B

    and...

  • RE: Significant performance dropping when use CASE statement

    BOR15K (10/15/2014)


    Apologies for the complete blunt question.

    I have created Countries_View and placed the problematic CASE within the view and then JOINT Cities A table with Countries_View B

    and all works like...

  • RE: Are the posted questions getting worse?

    Congratulations Grant!

    😎

  • RE: Accessing and using user defined function on SQL 2005 from SQL 2000

    Quick thought, you cannot execute the 2K5 function on the 2K server, the execution has to be in the scope of the 2K5 only. A workaround could be in the...

  • RE: How to use stuff function in this case

    Quick question, why are you using the nolock hint?

    😎

  • RE: Stored Procedure Execution Error

    jacksonandrew321 (10/15/2014)


    Hi

    I have created stored procedure to find out first word of the keyword. I am getting error below on execution:

    "Must declare the scalar variable "@SubjectBeginning"."

    Please suggest

    Quick note, for a...

Viewing 15 posts - 6,766 through 6,780 (of 8,755 total)