Forum Replies Created

Viewing 15 posts - 4,696 through 4,710 (of 8,761 total)

  • RE: SQL Joins Question

    Jeff Moden (8/16/2015)


    Gosh, I'd be real careful here, Eirikur. While your good code certainly does what was asked, it will fail if table SampleData2 is ever correctly used for...

  • RE: SQL Joins Question

    DiabloZA (8/16/2015)


    Hi Eirikur Eiriksson,

    Yes, this is what I needed.

    You are awesome and thank you very much for the quick help.

    Regards,

    DZA

    Thanks for the feedback and you are most welcome.

    😎

  • RE: LIKE, [ ] and empty string

    ErikMN (8/14/2015)


    I'm trying to find a specific string (a name) and replace it with another inside of a VARCHAR(7000) field. Unfortunately, there are names like Ted and Ken that I'm...

  • RE: Need Help on SQL Insert Query

    ManiDBLover (8/15/2015)


    Hi Guys,

    I have a requirement to Insert Column 1 and Column 2 based on below condition only. Looking for a Store procedure or query

    Condition : Allow Insert when...

  • RE: SQL Joins Question

    Quick suggestion

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    GO

    ;WITH SampleData (PERSON, STARTDATE, ENDDATE, INPUNCH, OUTPUNCH, HOURS,PAYCODE) AS

    (

    SELECT 1125,'08/11/2015','08/11/2015','08:00', '12:00',4.0, 'REGULAR'

    UNION ALL SELECT 1125,'08/11/2015','08/11/2015','13:00', '17:00',4.0, 'SICK'

    ...

  • RE: FOR XML PATH with two root nodes

    mtlsql (8/14/2015)


    I have to generate an XML document that matches the following customer specification.... This is our customer's specification, so I have no control over it.

    Do you have a schema...

  • RE: Null values with joins

    Here is one way of doing this, maybe not the most efficient but it works.

    The method is almost identical to what Chris posted before and works with the sample...

  • RE: Are the posted questions getting worse?

    Jeff Moden (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Jeff Moden (8/14/2015)


    Heh... since it's for XML...

    Trying to put my finger on this, just cannot find which kind of XML phobia is plaguing you Jeff:Whistling:, so...

  • RE: Are the posted questions getting worse?

    Gail, thank you for the correctio back there, makes me feel kind of sheepish

    😎

  • RE: Database in Recovery

    GilaMonster (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Chris.Hubbard4U (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Chris.Hubbard4U (8/14/2015)


    I have a database In Recovery.

    Where do I check the completion status of the recovery?

    Quick thought, query sys.dm_exec_requests and check for command='RECOVERY'

    😎

    I queried...

  • RE: Are the posted questions getting worse?

    Jeff Moden (8/14/2015)


    Heh... since it's for XML...

    Trying to put my finger on this, just cannot find which kind of XML phobia is plaguing you Jeff:Whistling:, so far I've checked these

    😎

    Ablutophobia...

  • RE: Unable to link data from data pulled from XML

    drew.allen (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Further, I was only stating that with a properly written XQuery, using the text() function is much quicker, I was not commenting or comparing to yours or...

  • RE: SELECT @@ServerName returns NULL

    Chris.Hubbard4U (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Chris.Hubbard4U (8/14/2015)


    Where I execute the command SELECT @@ServerName it returns NULL?

    This just started today.

    What could cause that?

    What does SELECT SERVERPROPERTY ( 'InstanceName' ) return?

    😎

    NULL:unsure:

    Are you connected to...

  • RE: Are the posted questions getting worse?

    Jeff Moden (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Ed Wagner (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Alvin Ramard (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    SQLRNNR (8/14/2015)


    Eirikur Eiriksson (8/14/2015)


    Sometimes one wonders what drives the responds when one points out that the posted solutions...

  • RE: Seeking guidance regarding a tSQL Script

    tjs8984 (8/14/2015)


    Hello,

    It is implied that if there are two occurrences of the same [Name] element then one will have the AnnualizingFactor of 2080.

    Correct. When two occurrences with...

Viewing 15 posts - 4,696 through 4,710 (of 8,761 total)