• ditha (4/21/2015)


    Eiminating I and O - its needs to return 24*24*10*10*24*24*10*10 exactly 3 317760000 records .

    That's fine with the data load if its slow.

    but I need to get my function working and return this exact results.

    Below is sample Output- >

    AA00AA00

    AA00AB01

    AA00AC02

    --

    AA00AH08

    AA00AJ09

    ---

    AA00AN13

    AA00AP14

    --

    AA00BA01

    ---

    ZZ99ZZ99

    MY CODE WORKS. BUT CODE NEEDS TO MODIFIED TO PUT IN A LOOP WHICH GENERATES ONLY FROM A TO Z AND 0 TO 9 ALL 8 COMBINATIONS.

    NO GENERATING DUPLICATES

    AND SHOULD ELIMINATE LETTER I AND O...

    This requirement is still quite strange. I would love to hear the actual usage of such a combination.

    Why not just generate 2 ctes, one with A - Z (except I and O) and another with 0 - 9. Then do some cross joins.

    _______________________________________________________________

    Need help? Help us help you.

    Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

    Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
    Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
    Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
    Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/