Forum Replies Created

Viewing 15 posts - 16 through 30 (of 66 total)

  • RE: Error when BCP into uniqueidentifier column

    frederico_fonseca - Wednesday, March 15, 2017 12:52 PM

    I would try and do one of those loads onto a varchar(100) and then do...

  • RE: Stuck on simple XML

    Thank you Drew, thank you DesNorton, I got it, it makes sense

  • RE: @@ROWCOUNT when cascade delete?

    thanks!

  • RE: SQL Server 2014 side-by-side with earlier versions of SQL Server

    Question:

    So let's say I have a default instance myServer of 2008R2 and its named instances

    myServer\A

    myServer\B

    myServer\C

    and now I want to side-by-side install 2014 having the same structure of A/B/C - do...

  • RE: Uneven timings when deleting by chunks

    Thank you Kristen,

    Not sure if deleting by FROM-TO is faster than by using TOP in my case...

    Thanks All once again

  • RE: Uneven timings when deleting by chunks

    Hi Lynn,

    That's probably the case... so, basically there is no way to avoid it, except for such common sense things like keeping transactions short, read uncommitted, update statistics, right? No...

  • RE: "Order" between JOIN and APPLY

    sgmunson (11/20/2014)


    I'm pretty sure Mr. Magoo has your answer, but the bigger and maybe more important question, is why leave code hanging around that is formatted that way, when there...

  • RE: "Order" between JOIN and APPLY

    Thank you Sir!

    I felt so happy until I read

    ...which leaves you with

    "table_source1" JOIN "joined_table1" ON "table_source1"col1 = "joined_table1"col1

    :hehe:

    is it a typo or am I lost even more than I...

  • RE: "Order" between JOIN and APPLY

    Thanks again for following it, and sorry if I'm still not making sense:-)

    Let me try to start from the beginning:

    - There is a table, Table1 in my example, that has...

  • RE: "Order" between JOIN and APPLY

    "data" here is an xml field of Table 1, sorry I did not mentioned it initially

    Thanks!

  • RE: "Order" between JOIN and APPLY

    This is how original code looks like:

    SELECT

    CASE WHEN F1.value('...') IS NOT NULL THEN F1.value('...')

    ELSE F2.value('...') END

    FROM

    ...

  • RE: "Order" between JOIN and APPLY

    sgmunson (11/19/2014)


    I don't know the direct answer, but why place the ON clause for that LEFT JOIN in a position AFTER the CROSS APPLY unless you intended that CROSS APPLY...

  • RE: XML Question (?)

    Ok, getting there:-)

    works fine, thank you once again

  • RE: XML Question (?)

    Journey goes on...

    Now, what if I have two records and need something like

    <instances>

    <instance instanceCode1="Rec1_Code1" instanceCode2="Rec1_Code2">

    ....<CustomInformation>

    ........<ColumnValue name="Field1">11</ColumnValue>

    ........<ColumnValue name="Field2">22</ColumnValue>

    ........<ColumnValue name="Field3">33</ColumnValue>

    ....</CustomInformation>

    </instance>

    <instance instanceCode1="Rec2_Code1" instanceCode2="Rec2_Code2">

    ....<CustomInformation>

    ........<ColumnValue name="Field1">1111</ColumnValue>

    ........<ColumnValue name="Field2">2222</ColumnValue>

    ........<ColumnValue name="Field3">3333</ColumnValue>

    ....</CustomInformation>

    </instance>

    </instances>

    ?

    I figured the external <instances>, the internal...

Viewing 15 posts - 16 through 30 (of 66 total)