Forum Replies Created

Viewing 15 posts - 1,531 through 1,545 (of 2,007 total)

  • RE: Stored procedure help

    R.P.Rozema (9/15/2011)


    It's not duplicates introduced by the splitter that should be eliminated, it's duplicates in the input that need to be removed per the requirement.

    Ah, reading fail. I didn't spot...

  • RE: Stored procedure help

    R.P.Rozema (9/15/2011)


    And add distinct to return only unique values.

    edit: sorry, missed the group by

    edit 2: the requirement "non duplicate rows" is not met yet. You could try something like this:

    SELECT...

  • RE: deleting data in all tables

    YTZ (9/15/2011)


    EXEC sp_MSForEachTable ‘ALTER TABLE ? CHECK CONSTRAINT ALL’

    Hmm, seem to have missed a bit?

    USE databasename

    GO

    EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT all'

    EXEC sp_MSForEachTable 'DELETE FROM ?'

    EXEC sp_MSForEachTable 'ALTER TABLE...

  • RE: Stored procedure help

    Assuming I've read your requirements properly (your requirements are insane btw, sounds more like an academic problem than a real world one). . .

    First, lets create some sample data: -

    DECLARE...

  • RE: Jeff Moden elected Exceptional DBA of 2011

    Congratulations! Well deserved, your articles are always useful and insightful.

  • RE: What's the best way to get an entry level job on SQL server?

    My advice will be unpopular, but I struggled to find my first development position so started off working for free at an NHS business intelligence solutions provider.

    I had some difficulty...

  • RE: Free Text Address Field Formatting

    What you're talking about is pretty much impossible to do accurately.

    For example, to get the country out of that string, you'd need to already have a list of every country...

  • RE: Alternate rows

    wburnett_1 (9/13/2011)


    Thank you, I knew it had to be something easy, but my brain just was drawing a blank 🙂

    Beware, as I alluded to and GSquared explained, without an...

  • RE: Alternate rows

    Could do with a way to order the results. Does this work for you?

    ;WITH addID AS (

    SELECT field1, field2, ROW_NUMBER() OVER(ORDER BY (SELECT NULL)) AS rn

    FROM #tmp1)

    SELECT CASE WHEN...

  • RE: Need unused indexes stats

    I suspect that you are too busy to have had any opportunity to read any of the numerous blog posts on this subject that litter the internet.

    So for your convenience,...

  • RE: Query Optimisation

    Read this link for how to post performance problems[/url].

    From just looking at your code, it's difficult to suggest much other than the obvious.

    SELECT A.[Product Number (SKU)],A.[Serial Numbers],

    A.[Sell Through Quantity],A.[Seller -...

  • RE: Another bug in SS?

    Ninja's_RGR'us (9/9/2011)


    Cadavre (9/9/2011)


    Reproduced on 2k8 R2

    What SP level (MS usually prefers the latest SP, so I need to ask)

    Tx, 2 more to go!

    2K8 & Denali

    SP1


    --EDIT--

    MysteryJimbo (9/9/2011)


    FWIW I can reproduce but...

  • RE: Another bug in SS?

    Reproduced on 2k8 R2

  • RE: The Apprentice

    I tried to get into software development for 3 years; calling, sending CV + Cover letter, and visiting many business both big and small in an attempt to get an...

  • RE: can help to get the below result

    ravishankar.yedoti (9/9/2011)


    i can't access the link below

    sp_whoisactive is throwing an error that no storedprocedure

    There's no problem with the link provided by Gianluca, but if you can't access it then...

Viewing 15 posts - 1,531 through 1,545 (of 2,007 total)