Forum Replies Created

Viewing 15 posts - 4,936 through 4,950 (of 8,753 total)

  • RE: Extract the titles from XML

    Further on the discussion, here is a small test sample

    😎

    USE msdb;

    GO

    SET NOCOUNT ON;

    DECLARE @TXML XML = (

    SELECT --TOP 200

    *

    FROM sys.tables ST

    INNER JOIN...

  • RE: Extract the titles from XML

    SQLRNNR (7/13/2015)


    Mikael Eriksson SE (7/13/2015)


    I guess this is the preferred form.

    SELECT

    col.value('(Title/text())[1]', 'varchar(50)') AS 'Book'

    FROM @x.nodes('/root/Books/Book') a(col)

    Using text() in the values clause removes one call to...

  • RE: Extract the titles from XML

    Jeff Moden (7/13/2015)


    The correct answer isn't actually available. The correct answer should be to "hunt down the moroff that used XML to transmit purely flat data and introduce him...

  • RE: Extract the titles from XML

    chgn01 (7/13/2015)


    try './/Book'

    Will work but it's far more expensive to traverse the structure than to do a direct reference.

    😎

  • RE: Measuring SQL performance

    rahmanagg (7/13/2015)


    Hi All,

    I'm working on a project comparing the performance of SQL and NoSQL database (MongoDb). I'm focusing on "insert, select, delete and update operations. I am trying to...

  • RE: Locked Out!

    jackfh (7/13/2015)


    I don't think that's it, our older prod instance appears to be configured the same way. I've tried logging in as domain admin and local admin.

    Suggest you...

  • RE: Are the posted questions getting worse?

    GilaMonster (7/13/2015)


    Brandie Tarvin (7/13/2015)


    GilaMonster (7/13/2015)


    Yes, yes, yes, yes!!!!!!!!

    Congratulations. You have complied with the requirements prescribed for your degree, and are cordially invited to the graduation ceremony

    YAY!

    What is the degree in?

    M.Sc...

  • RE: sql server memory issue

    giri10488 (7/13/2015)


    can sql server free some memory to os & when,how?

    Too increase the OS memory, change the max memory settings.

    😎

  • RE: sql server memory issue

    giri10488 (7/13/2015)


    I have an issue with a server memory. SQL server is allocated 32 Gb out of 40 GB memory and sql server is using all the memory which is...

  • RE: Locked Out!

    jackfh (7/12/2015)


    Unfortunately, that didn't show me anything I could work with. I can't see the password. I have a domain account running services. I reset the PW...

  • RE: Locked Out!

    jackfh (7/12/2015)


    We had a password changed on the sa account and, upon reboot, the MSSQLSERVER service stopped working and gives a login error when attempting to start it. ...

  • RE: query data

    Quick suggestion, use union all and order on the two id columns, here is an example

    😎

    USE Test;

    GO

    SET NOCOUNT ON;

    ;WITH BASE_DATA AS

    (

    SELECT

    BT.BookID

    ,0 AS TitleID

    ...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/11/2015)


    Can't speak to that for sure but I believe I have the worst example of them all. My sweetie talks to me and I still can't figure...

  • RE: Today's Random Word!

    Revenant (7/10/2015)


    SQLRNNR (7/10/2015)


    DonlSimpson (7/10/2015)


    Ed Wagner (7/10/2015)


    SQLRNNR (7/10/2015)


    Ed Wagner (7/10/2015)


    Patrick Stewart

    Dempsey

    Jack

    Gene

    Hackman

    Popeye

    Williams

  • RE: How to improve that query?

    Luis Cazares (7/10/2015)


    Eirikur Eiriksson (7/10/2015)


    Puzzles me though that the last condition will never be hit as it is a subset of the first one, typo perhaps?

    😎

    It's more an optic illusion,...

Viewing 15 posts - 4,936 through 4,950 (of 8,753 total)