Forum Replies Created

Viewing 15 posts - 31 through 45 (of 191 total)

  • RE: Order My Data

    CREATE UNIQUE CLUSTERED INDEX IDX_A ON #temp1(a,i)

    Did I miss the part that said the combination of a and i will be unique? It is in the given dataset,...

  • RE: SOUNDEX

    I had to spend more time researching cursors than SOUNDEX. I've never used one in my life. Not sure I would have used one here either. Seems...

  • RE: Orphaned users

    sknox (10/31/2013)


    The following T-SQL code creates database users which map to the Windows groups. Every member of those groups, when logging into SQL Server, will have the rights of those...

  • RE: Orphaned users

    I clearly need some educatin' here. I'm very much not an administrator, so bear with me.

    "TestWindowsUser is in a domain group that is a member of db_owner and another...

  • RE: ISNUMERIC(varchar)

    Hugo Kornelis (10/15/2013)


    As others have said, TRY_CONVERT in SQL Server 2012 fills that gap.

    Ah yes, I must have glossed over it due to the "2012" part. I try not to...

  • RE: ISNUMERIC(varchar)

    Hugo Kornelis (10/15/2013)


    ISNUMERIC returns 1 if the input can be converted to a numeric data type. It doesn't bother to tell you which data type.

    I've yet to discover what numeric...

  • RE: Try.. Catch..

    "Transact-SQL errors [...] are treated differently inside a function. In functions, such errors cause the execution of the function...

  • RE: Try.. Catch..

    Narud (10/9/2013)


    Nice question. I knew the answer because I tried to use try/catch inside an UDF a few months ago. 🙂

    "Hey, I've got an idea! Oh... no I don't."...

  • RE: Try.. Catch..

    I only knew the answer because I'd tried it before. Since the ISNUMERIC() function is fundamentally broken, I tried creating a function that would actually try to cast the value...

  • RE: Executing Dynamic SQL

    Toreador (9/26/2013)


    I knew it was going to fail due to the data type, but any of the options was feasible so it came down to a guess as to which...

  • RE: Between & Collation

    Ed Wagner (8/29/2013)


    In the ASCII character set [...] A is 65 while a is 97. To have them sort differently here is somewhat counter-intuitive [...].

    Don't get me wrong here,...

  • RE: How does SQL pronounce SQL?

    Hugo Kornelis (6/30/2013)


    ronmoses (6/28/2013)


    It doesn't strike me as a particularly useful function, especially given these examples:

    SOUNDEX and DIFFERENCE can be useful, but you have to know their specifications. Here is...

  • RE: How does SQL pronounce SQL?

    Hugo Kornelis (6/30/2013)


    So the title of the post is misleading

    Not intentionally so, of course 🙂

    Thank you for the added information, those results make perfect sense now.

    ron

  • RE: How does SQL pronounce SQL?

    BarneyL (6/28/2013)


    While I wouldn't trust the results without checking them by eye (or expect all cases to be found) DIFFERENCE can be used as a quick and dirty way of...

  • RE: How does SQL pronounce SQL?

    It doesn't strike me as a particularly useful function, especially given these examples:

    SELECT SOUNDEX('cent') --C530

    SELECT SOUNDEX('scent') --S253

    SELECT DIFFERENCE('cent','scent') --2, a very weak match

    SELECT SOUNDEX('through') --T620

    SELECT SOUNDEX('threw') --T600

    SELECT DIFFERENCE('through','threw') --3,...

Viewing 15 posts - 31 through 45 (of 191 total)