Forum Replies Created

Viewing 15 posts - 151 through 165 (of 8,416 total)

  • RE: Splitting Strings Based on Patterns

    dwain.c (11/29/2012)


    Paul - Thanks for stopping by and making the CLR suggestion. Haven't seen you posting much of late so seeing your name pop up surprised me.

    I don't answer...

  • RE: Splitting Strings Based on Patterns

    dwain.c (11/29/2012)


    fregatepallada (11/29/2012)


    IMHO this task would be better implemented in CLR UDF rather than in pure T-SQL. CLR UDF easily allows to apply REGULAR EXPRESSIONS.

    So how about an example?

    I'd love...

  • RE: How to disable intellisense in SQL 2008 permanently

    tony.price.uk (11/29/2012)


    From SSMS

    Tools>Options>Text Editor>Transact SQL>Intellisense> Enable/Disable

    This works, of course, but it doesn't address the requirement in the first post.

  • RE: Select unmatched data from two columns

    Meow Now (11/26/2012)


    The oddity that I find interesting about this question is the fact that the UNION automatically sorts the results. In my head I'm thinking the results would...

  • RE: Select unmatched data from two columns

    Lokesh Vij (11/26/2012)


    One more way without using EXCEPT or INTERSECT

    SELECT Isnull(a.id, b.id)

    FROM t1 a

    FULL OUTER JOIN t2 b

    ...

  • RE: Select unmatched data from two columns

    I like this way of expressing the solution:

    SELECT t1.ID FROM dbo.T1 AS t1

    UNION

    SELECT t2.ID FROM dbo.T2 AS t2

    EXCEPT

    SELECT t1.ID FROM dbo.T1 AS t1

    INTERSECT

    SELECT t2.ID FROM dbo.T2 AS t2;

  • RE: Halloween Protection

    Steve Jones - SSC Editor (11/1/2012)


    Interesting discussion. Freedman does mention inserts and deletes, but he never wrote on the subject. Perhaps he was mistaken, perhaps he hasn't had time. The...

  • RE: character ordering

    derek.colley (11/1/2012)


    I'm afraid this question was just too obscure for me. It's a good question, sure, but why would I need to know this or reference it in any...

  • RE: Parsing values in the WHERE clause

    Interesting question, shame about the explanation.

  • RE: Halloween Protection

    GilaMonster (10/31/2012)


    Andrew Diniz (10/31/2012)


    After all, it is possible to observe 'Halloween Protection' in DELETE and INSERT plans too :hehe:

    No, the Halloween problem is exclusively for updates. You can't insert or...

  • RE: SELECT (Transact-SQL)

    If Microsoft ever decide to replace the T-SQL parser with a human, they won't choose me.

  • RE: COALESCE

    Hugo Kornelis (10/17/2012)


    I think the choice will be integer, but I'm not sure.

    Yes it is integer.

    USE tempdb;

    SELECT NULL AS n INTO #z

    EXEC sys.sp_columns

    @table_name = N'#z',

    ...

  • RE: Table Variables

    I found this a good and quite straightforward question (though it is SQL Server 2012 not SQL Server 2011).

  • RE: Noise

    Aleksl-294755 (10/16/2012)


    I concur with kapil190588 that the version should somehow be mentioned.

    Please see http://msdn.microsoft.com/en-us/library/ms142551(v=sql.90).aspx - noise-word list (LIST!)

    Not NoiseList then? 😉

  • RE: VIEW - 9

    Hugo Kornelis (10/15/2012)


    At first sight, I thought this was a question to check whether indexed views can have their own statistics. I did not know that, so I set out...

Viewing 15 posts - 151 through 165 (of 8,416 total)