Forum Replies Created

Viewing 15 posts - 346 through 360 (of 860 total)

  • RE: Update record if exists else create new

    ColdCoffee (5/7/2012)


    MERGE

    +1 with Merge you only have to run 1 query instead of 2 (one for insert one for update)

    MERGE MSDN

  • RE: Find out why a SP failed.

    Grant Fritchey (5/7/2012)


    Unless we're talking about some type of actual error, no, there's nothing to see for a query that behaved, but didn't do what you wanted.

    what i expected to...

  • RE: Find out why a SP failed.

    Lowell (5/7/2012)


    i guess it depends on what you mean by failed. do you mean:

    1. zero rows got deleted, but you expected it to delete something,

    2. or do you...

  • RE: Today's Random Word!

    ChrisM@Work (5/4/2012)


    capn.hector (5/3/2012)


    crookj (5/3/2012)


    capn.hector (5/3/2012)


    Ray K (5/3/2012)


    ChrisM@Work (5/3/2012)


    bopeavy (5/3/2012)


    Ray K


    EL Jerry (5/2/2012)

    --------------------------------------------------------------------------------

    bopeavy (5/2/2012)

    --------------------------------------------------------------------------------

    hypothesis

    Hypothermia

    hypochondriac

    hypothalamus

    Beta thalassemia

    Beta release

    windows vista

    Windows ME :crazy:

    Mighty Excrement

    Coproheavy

    T-Rex

  • RE: Find Indexes Rebuild Yesterday

    its not 100 percent but when an index is rebuilt the statistics get updated. you can use the following to kinda see when the last time it was rebuilt....

  • RE: NOEXPAND hint returns incorrect bit values

    your right those dont really look like bad fragmentation numbers. im at the end of my knowledge here. with the incorrect data getting in have you tried rebuilding...

  • RE: re-define an incoming string of data into columns

    what does the string look like? are there nice delimiters or is it a fixed width set up?

    with delimiters have a look at Jeff Moden's DelimitedSplit8K[/url]. if its...

  • RE: NOEXPAND hint returns incorrect bit values

    Coming from BOL:

    When a unique clustered index is created on a view, the result set is stored in the database just like a table with a clustered index is stored.

    then...

  • RE: BCP cmds BUILDING up in cursor

    From my limited testing you can use the following code:

    SET CURSOR_CLOSE_ON_COMMIT OFF

    DECLARE @ID INT

    DECLARE test CURSOR FOR

    SELECT productID FROM product ORDER BY productID

    OPEN test

    FETCH NEXT FROM test INTO @ID

    WHILE @@FETCH_STATUS...

  • RE: Count aggregate rows

    bostonjoey (5/4/2012)


    Hmm...seems like I was overthinking tremendously! Thank you for your help. I apologize for not being clearer in my explanation earlier, I should of posted the supplementary information. I...

  • RE: insert 100 rows without using loop or union etc.,

    Eugene Elutin (5/4/2012)


    Jeff Moden (5/3/2012)


    michael vessey (5/2/2012)


    does the following count as a loop?

    INSERT INTO dbo.yourTable default values

    go 100

    ??:-P??

    BWAAAA-HAAAA!!!!! Ask that question on the receiving end of an interview and...

  • RE: Remove successive rows with same column value

    i was attacking it the same way lynn was and my code is very similar. i may suggest making idLigne an INT instead of a VARCHAR as that would...

  • RE: Count aggregate rows

    im having a little dificulty understanding your requirements. do you have multiple entries for a location and product id that you need to sum the cases for??

    Can you post...

  • RE: txt import

    slunt01 (5/3/2012)


    ok what is a bulk insert?

    See i told you i was new.

    It seems like there is a million ways to do one thing.

    Here is the MSDN article on it...

  • RE: NOEXPAND hint returns incorrect bit values

    Evil Kraig F (5/3/2012)


    Considering the number of views of this and that noone's responded, and that I'm utterly boggled by the occurence as I understand your description, this might be...

Viewing 15 posts - 346 through 360 (of 860 total)