Forum Replies Created

Viewing 15 posts - 3,016 through 3,030 (of 8,416 total)

  • RE: Character type number convert

    Chris Morris-439714 (7/13/2010)


    It's great ... but...the order of the output doesn't match the order specified by the OP 😛

    Yeah, but the OP got it wrong!

  • RE: Character type number convert

    Eugene Elutin (7/13/2010)


    I knew it wouldn't work, however it does look nice (as result of creative thinking

    It does indeed look very pretty 😎

    I'm going with the upgrade to 2008 and...

  • RE: Help with SQL Coding

    Eugene Elutin (7/13/2010)


    You didn't get. It is just a joke! You should: Ha! Ha! Ha! Am I right?

    Not entirely, but I can see why you would say that.

    Nobody here (except...

  • RE: Help with SQL Coding

    Steve Jones - Editor (7/13/2010)


    Nice, Paul. I assume those are provided for testing, or other solutions and not for this problem.

    No.

    It's overkill and inefficient for what the OP is trying...

  • RE: Character type number convert

    Eugene Elutin (7/13/2010)


    Looks like it's work:

    Very creative.

    Where would the following sort...?

    1.4.1

    1.4.2

    1.5.1

    1.5.2

    1.22.1

    1.23.1

    😛

  • RE: Character type number convert

    Chris Morris-439714 (7/13/2010)


    Oh no, I knew I should have stayed at home today with this headsnake :doze:

    This looks to me like a valid sequence with rules - note the position...

  • RE: Cursor and while loop

    This site has just republished an excellent two-part article by R Barry Young on how to replace cursors in your code:

    There Must Be 15 Ways to Lose Your Cursors[/url]

  • RE: Character type number convert

    skcadavre (7/13/2010)


    Paul White NZ (7/13/2010)


    Where should 1.2.10 sort, I wonder...?

    Chris Morris-439714 (7/13/2010)


    Or 1.1.3, even...

    I think the OP specified the location of that.

    He did.

    I took Chris' post as pointing out that...

  • RE: need help in applying foreign key constraint in the table

    shivanee.chikhalikar (7/13/2010)


    But, in master table there is composit key of CustNoCorp and Categoryid. And Category id is the primary key having identity on.

    Giving a column the IDENTITY property does not...

  • RE: Help with SQL Coding

    Or even:

    WHILE EXISTS

    (

    SELECT *

    ...

  • RE: Character type number convert

    Chris Morris-439714 (7/13/2010)


    Paul White NZ (7/13/2010)


    Where should 1.2.10 sort, I wonder...?

    Or 1.1.3, even...

    Quite.

  • RE: Character type number convert

    skcadavre (7/13/2010)


    You killed both solutions 😛

    It's a knack 😉

    I'm thinking CHARINDEX, split on the period and sort that way?

    That would work (and Chris would provide a recursive CTE solution)

  • RE: Character type number convert

    Where should 1.2.10 sort, I wonder...?

  • RE: Help with SQL Coding

    This one uses a cursor:

    DECLARE @temp INTEGER; -- Our random number

    DECLARE @dummy INTEGER;

    DECLARE curNullAppIDs CURSOR LOCAL

    SCROLL DYNAMIC

    ...

  • RE: Help with SQL Coding

    For comparison purposes, this is one possible row-at-a-time solution:

    -- A temporary table for demonstration purposes

    CREATE TABLE #EventPersonInfo

    (

    ...

Viewing 15 posts - 3,016 through 3,030 (of 8,416 total)