Forum Replies Created

Viewing 15 posts - 6,316 through 6,330 (of 10,144 total)

  • RE: Issue: Index creation is not running in parallel

    anthony.green (5/16/2012)


    I thought the whole point of allowing the MAXDOP setting in statements is to override what is set at the server level as the options are evaluated at run...

  • RE: Issue: Index creation is not running in parallel

    BOL also states "To suppress parallel plan generation, set max degree of parallelism to 1". My italics. If parallel plan generation is suppressed, should it matter what MAXDOP setting you've...

  • RE: Issue: Index creation is not running in parallel

    Because "The instance is configured with max degree of parallelism=1", perhaps?

  • RE: Capture data rows from output cursor into table variable

    kingdonshel (5/13/2012)


    I have been trying to insert rows into table variable from the reults of an output cursor ...

    What is it that you're trying to accomplish here? If you can...

  • RE: Are the posted questions getting worse?

    GilaMonster (5/12/2012)


    Talking about London, heading that way tonight and won't have much time for SSC while I'm there. Could some people keep a watch for corrupt databases, production restores or...

  • RE: Where Statement affects Index?

    Charmer (5/11/2012)


    Thank you Guys...i am clear now..

    You will be if you can find the time to read this excellent article by David Durant[/url].

  • RE: Where Statement affects Index?

    Charmer (5/11/2012)


    ChrisM@Work (5/11/2012)


    Charmer (5/11/2012)


    Hi Friends,

    I am here to discuss the general topics of index....

    One of my colleague says if we add filtering(where statement) , it will affect index. Is that...

  • RE: Where Statement affects Index?

    Charmer (5/11/2012)


    Hi Friends,

    I am here to discuss the general topics of index....

    One of my colleague says if we add filtering(where statement) , it will affect index. Is that true.? How...

  • RE: DateAdd together with DateDiff

    It's been longer than a coffee break since the OP last posted anything 😀

  • RE: improve performance of sp

    Tim Walker. (5/10/2012)


    I have amended my original proposal to a genuinely useful one:

    CREATE PROC WhenCanIGoHome AS

    SELECT 'You can go home at '+CONVERT(varchar, DATEADD(s,5+(3595*RAND(CHECKSUM(NEWID()))),GETDATE()),108)

    :hehe:

    Tim

    Late again! Your dinner's in the dog.

  • RE: case statement

    ranuganti (5/10/2012)


    so how should we use this statement without returning 2 records

    select

    case when Void = 0 then SUM(weight) end AS totalweight

    from test

    when i use this i get

    result as:

    total...

  • RE: Need help with SQL statement using COUNT function

    mldardy (5/8/2012)


    I am using a Select statement where I get the difference between two columns (ForecastQtyContainers and LastYearQtyActualContainers). I'm able to get that fine but I want take the Difference...

  • RE: String conversion

    anthony.green (5/10/2012)


    if its a date time column could you not just do

    select CONVERT(varchar,getdate(),10)

    No leading zero for days and months...

  • RE: String conversion

    SELECT STUFF(REPLACE('/'+CONVERT(VARCHAR(10),GETDATE(),1),'/0','/'),1,1,'')

  • RE: String conversion

    Jeff Moden (5/9/2012)


    BWAAA-HAAA!!! This will do it! :-P:-D Makes a "great" interview question. :sick:

    WITH F(x) AS (SELECT TOP (CHECKSUM(66-ASCII('A'))) '/'+CONVERT(CHAR(8),GETDATE(),CAST(EXP(0) AS INT)) FROM sys.objects)

    SELECT STUFF(REPLACE(LEFT(x,POWER(73,1/2)*POWER(25,1/2.0)),'/0','/')

    ...

Viewing 15 posts - 6,316 through 6,330 (of 10,144 total)