Forum Replies Created

Viewing 15 posts - 1 through 15 (of 27 total)

  • RE: Data Collector - collection_set_4_noncached_collect_and_upload job failing

    sisiralek (10/24/2011)


    Create the following table on TempDB, It will resolve the issue

    CREATE TABLE [tempdb].[dbo].[sysutility_batch_time_internal] (

    ...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: Need Create View Script for all tables

    andrew.mckee (6/17/2013)


    A simpler way to avoid "Select * " is to use "for xml path" to get columns:

    SELECT 'CREATE VIEW ' + TABLE_SCHEMA + '.vw_' + TABLE_NAME + ' AS...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: LEFT JOIN

    I replied to this QOTD quite early on but I have revisited it a few times due to the comment emails I get from it.

    Never before have I seen so...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: LEFT JOIN

    I am sorry to have to say that I did not like the wording of the question or the answers and I am surprised at myself for answering this question...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: A Hazard of Using the SQL Merge Statement

    Mike McIver

    "David looses 90% for the snipe at Microsoft ... long live Bill Gates! David needs to attend the Redmond Reeducation Camp.

    "

    Long Live Bill Gates? - Tee hee!

    I love Microsoft...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: A Hazard of Using the SQL Merge Statement

    I think the title is misleading and a little unfair to the wonderful work Microsoft did with Merge (Despite its being 6 years after Oracle - poor show MS).

    This is...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: Precision required

    Wow Tom. Epic yet fantastic explanation of the inner working off this qotd.

    Thanks very much for that. I thought it was interesting when I posted it but you really took...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: Can This Work?

    I haven't tried this but i got it wrong (apparently). I don't think the proposers answer is correct though as SQL will terminate after 32 levels of nesting which...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: Finding New Years Eve

    -- In 2008 + you can use a date instead of a datetime with implicit conversion

    DECLARE @Date date = GETDATE()

    SELECT DATEADD(DAY, -DATEPART(dayofyear,@Date),@Date)

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: Finding New Years Eve

    Toreador (1/9/2013)


    DavidBridgeTechnology.com (1/9/2013)


    When is New Years Eve anyway?

    February 9th 😉

    Ha Ha.:-P

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: Finding New Years Eve

    Whilst others are being picky I thought I would add my bit.

    None of the answers are right

    When is New Years Eve anyway?

    If its January 9th (as it is today) then...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: Table variables

    In case anybody wonders, on a similar note...

    Can table valued parameters be used in a function?.

    .

    .

    .

    Yes!

    and they are very useful fo creating functions that take name-value-pairs

    e.g.

    CREATE TYPE [dbo].[AuditNVP] AS TABLE(

    [Name]...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: SET Options - 1

    I love indexed views

    Actually I hate indexed views

    Actually I love indexed views

    Actually I hate indexed views

    Actually I love indexed views

    Actually I hate indexed views

    Actually I love indexed views

    Actually I hate...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: PARSE 1

    Select #2 Returns 2 rows ???

    I don´t think so..

    Error converting string value '2013DEC32 00:00:00' into data type datetime using culture ''.

    Yep - I thought that too but also do...

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

  • RE: STUFF - 2

    it would probably make sense for BOL to have a NULL Handling section for every functions help page

    Great idea!

    Dave

    David Bridge
    David Bridge Technology Limited
    www.davidbridgetechnology.com

Viewing 15 posts - 1 through 15 (of 27 total)