Forum Replies Created

Viewing 15 posts - 226 through 240 (of 455 total)

  • RE: Duplicate Foreign Key

    Okay, I've officially got too much time on my hands with this vacation thingy. I ran the following modified code on my laptop (8GB RAM, SQL 2008 Express) :

    -- Creating...

  • RE: Duplicate Foreign Key

    OCTom (10/23/2012)


    The question asks how many duplicate keys will be created, not how many can be created. No one can truly have an infinite number of anything. Resources will run...

  • RE: SELECT

    Rich Weissler (10/5/2012)


    (Bob Brown) (10/5/2012)


    Probably a better QotD is: How did 53% get the answer 2,error? :hehe:

    <Cut> <Paste> <Execute> ?

    Which gives you 2, 0 with an error...

  • RE: SELECT

    Hugo Kornelis (10/5/2012)


    I *knew* when I saw the answer options that there would be a possible source of confusion here.

    Yes, me too. So to make sure whether the second select...

  • RE: IDENTITY INSERT

    1. Query 1 fails because there are no values provided to INSERT.

    2. Query 2 fails because the syntax for SET IDENTITY_INSERT requires a table name.

    3. Query 3 succeeds because DEFAULT...

  • RE: Inner Join

    For a deeper understanding of what's going on, try this code:

    CREATE TABLE #TABLE1

    (

    Col1 INTEGER

    ,Desc1 char(3)

    )

    CREATE TABLE #TABLE2

    (

    Col2 INTEGER

    ,Desc2 char(3)

    )

    INSERT INTO #TABLE1 VALUES...

  • RE: Tablesample

    Another QotD which does not test what it purports to test.

    Even if you know TABLESAMPLE inside and out, you cannot expect to get this question correct without knowing the...

  • RE: APPLY - 1

    Hugo Kornelis (9/6/2012)


    Rewriting them with APPLY makes them valid:

    FROM Table1 AS t CROSS APPLY (correlated subquery) AS s ON s.Col1 = t.Col1

    FROM Table1 AS t CROSS APPLY dbo.MyFunction(t.SomeColumn) AS f...

  • RE: APPLY - 1

    mbova407 (9/6/2012)


    I guess I don't understand the question. How is using cross-apply with a where join any different then an inner join with the ON (or where) join

    SELECT

    ...

  • RE: APPLY - 1

    derek.colley (9/6/2012)


    Good question, I had it in my head that CROSS APPLY acted like an INNER JOIN and OUTER APPLY acted like an OUTER JOIN, but in fact the CROSS...

  • RE: Labor Day 2012

    GRRR! ANOTHER answer without a Books Online reference! How are we supposed to verify this against the official Microsoft documentation!!!?

    😀

  • RE: Table Variable

    bitbucket-25253 (8/30/2012)


    Nice question on the basics

    ...A better supporting document/respected DBA is this blog posting by Steve Jones

    http://www.sqlservercentral.com/blogs/steve_jones/2012/08/03/identity-insert-and-table-variables-connect-issue/

    Agreed. Also, if you haven't voted on the Connect submission for this issue,...

  • RE: Index types 2

    Hugo Kornelis (8/30/2012)


    Thanks, Koen! (EDIT: And Braindonor, who added a reply while I was typing)

    I submitted this question quite a long time ago - and I found that I had...

  • RE: Inserts

    mtassin (8/23/2012)


    sknox (8/23/2012)


    For once I am going to say that the table declarations were best left out -- they would not have helped, and just might have muddied the waters.

    I...

  • RE: Inserts

    For once I am going to say that the table declarations were best left out -- they would not have helped, and just might have muddied the waters.

    From the repetitive...

Viewing 15 posts - 226 through 240 (of 455 total)