Forum Replies Created

Viewing 15 posts - 7,021 through 7,035 (of 8,760 total)

  • RE: XQuery help please.

    Quick suggestion, use the nodes method, check out this example

    😎

    DECLARE @TXML XML = '<?xml version="1.0"?>

    <SEARCHREQUESTRESULT>

    <DOCUMENTS>

    <DOCUMENTDETAIL>

    <DOCUMENTDATE />

    <CONSIDERATIONAMOUNT>0</CONSIDERATIONAMOUNT>

    <BOOK><![CDATA[]]></BOOK>

    <PAGE><![CDATA[]]></PAGE>

    <REFERENCENUMBER><![CDATA[]]></REFERENCENUMBER>

    <NOTES><![CDATA[]]></NOTES>

    <RETURNEDTO/>

    <PARTIES>

    <PARTY>

    <ID>1090</ID>

    ...

  • RE: No Compelling Reason

    Andrew Kernodle (9/19/2014)


    My company would certainly benefit from upgrading to 2014 at this point; not so much because of new features (though in-memory could potentially be useful for one table...

  • RE: Read XML Input into table

    Quick thought and as g.britton pointed out, the reference has to be exact, try this out for a size

    😎

    DECLARE @testXml XML;

    select @testXml='<invoices>

    <InvoiceNo>13537010*1</InvoiceNo>

    <psship>value_psship1</psship>

    <InvoiceNo>13537010*3</InvoiceNo>

    <psship>value_psship2</psship>

    <InvoiceNo>13537010*4</InvoiceNo>

    <psship>value_psship3</psship>

    <InvoiceNo>13537010*5</InvoiceNo>

    <psship>value_psship4</psship>

    <InvoiceNo>13537010*7</InvoiceNo>

    <psship>value_psship5</psship>

    </invoices>';

    SELECT

    INVOICE.DATA.value('.[1]','VARCHAR(50)')

    FROM @testXml.nodes('/invoices')...

  • RE: Long running MERGE

    Quick first questions, what are the server specs, has the behaviour been trending, what is the maxdop, the threshold for parallelism, server version/edition?

    😎

  • RE: Which is the correct spatial data type?

    wolfkillj (9/19/2014)


    okbangas (9/19/2014)


    I have some doubt on the correctness of this question. As you get the coordinates from a GPS system and your task is to store the coordinates (calculation...

  • RE: Which is the correct spatial data type?

    TomThomson (9/19/2014)


    Good question.

    I was feeling too depressed by my nation's decision to stay under England's domination :crying:

    Breaks my heart seeing such an opportunity waisted!

    😎

  • RE: Which is the correct spatial data type?

    Stewart "Arturius" Campbell (9/19/2014)


    TomThomson (9/19/2014)


    Good question.

    I was feeling too depressed by my nation's decision to stay under England's domination :crying: to do any research this morning, so I took a...

  • RE: Query to find maxdop of an index

    pawana.paul (9/19/2014)


    Hello,

    I altered index with maxdop to somevalue (n). What is the query to validate that xyz index has maxdop value set to (n)?

    I tried with GUI. index properties, option...

  • RE: No Compelling Reason

    As far as I've seen, the retention issues are not the platform itself but the dependants. The technical part of the SQL Server upgrade is one of the smoothest there...

  • RE: Can any one say what are the Do's and Don't for Sql server 2005 standard edition

    naga.rohitkumar (9/18/2014)


    Hi all,

    Can any one say what are the Do's and Don't for Sql server 2005 standard edition breifly

    Not certain what you are indeed asking but a short list...

  • RE: How to show rows in column

    There are few ways of doing this, here are two of them. The first uses a combination of GROUP BY and HAVING, the second uses ROW_NUMBER and MIN/MAX Window function.

    😎

    USE...

  • RE: SQL SERVER Comma Separated values XML PATH

    Here is a suggestion

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @SAMPLE_DATA TABLE

    (

    CallStartDateTime DATE ...

  • RE: Need Help with Old School Pivot

    Luis Cazares (9/18/2014)


    Eirikur Eiriksson (9/18/2014)


    Oops, used the wrong code:-P Here is the correct version, in fact the same thing Luis posted, but in SQLite dialect

    😎

    I tested it on sqlfiddle.com and...

  • RE: Need Help with Old School Pivot

    Oops, used the wrong code:-P Here is the correct version, in fact the same thing Luis posted, but in SQLite dialect

    😎

    select

    1 AS Group_ID

    ...

  • RE: How can we move the data from one table to another table in diff server

    naga.rohitkumar (9/18/2014)


    How can we move the data from one table to another table in diff server

    server 1 have 5 million records and it need to move to server 2 table...

Viewing 15 posts - 7,021 through 7,035 (of 8,760 total)