Forum Replies Created

Viewing 15 posts - 3,841 through 3,855 (of 8,753 total)

  • RE: problematic xml

    Quick suggestion, use the .nodes function

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @TXML XML = '<xml-response>

    <clear-fraud>

    <clear-fraud-stabilities>

    <clear-fraud-stability>

    ...

  • RE: Can you reference the row number to delete rows in a table

    mrjae (3/6/2016)


    Hi there,

    I am new to sql server and i am practicing on SQL Express. I have created a table and in error I have duplicated rows. My first...

  • RE: Query/Performance Tuning Steps without help of profiler

    ganapathy.arvindan (3/6/2016)


    Please Help me Query/Performance Tuning Steps with out help of profiler

    Quick suggestion, get Grant's book on execution plans[/url]

    😎

  • RE: Fix Over Lapping Dates

    Quick and simple solution with LEAD()

    😎

    USE tempdb;

    GO

    SET NOCOUNT ON;

    declare @overlap table

    (

    ID int identity,

    infoname char(10),

    code char(10),

    mods char(30),

    type varchar(30),

    effective date ,

    termination date

    )

    insert into @overlap

    select 'DUMMY','99205','C','*','01/01/2008','12/31/2100'

    insert into @overlap

    select 'DUMMY','99205','C','*','01/01/2009','12/31/2100'

    insert into @overlap

    select...

  • RE: Help with SUBSTRING and CHARINDEX

    Quick suggestion, similar to Luis's

    😎

    DECLARE @LOG_STRING VARCHAR(200) = 'Login failed for user ''User1''. Reason: Failed to open the explicitly specified database. [CLIENT: 11.11.11.11]';

    SELECT

    SUBSTRING

    ...

  • RE: some of cpu cors are not used By sql server 2014

    MotivateMan1394 (2/28/2016)


    Hi

    Ask help from old-hands

    We have a server : win 2008 R2 enterprise (virtual machine) - Sql server 2014 - sp1

    we had 22 cpu core which...

  • RE: Try Catch doesnt work

    farax_x (2/19/2016)


    Why Try Catch doesnt catch collation exceptions? How can I handle it?

    BEGIN TRY

    IF '1' COLLATE Arabic_CI_AI = '1' COLLATE Arabic_100_CI_AI

    ...

  • RE: Are the posted questions getting worse?

    Sean Lange (2/15/2016)


    Grant Fritchey (2/15/2016)


    Hugo Kornelis (2/15/2016)


    jasona.work (2/15/2016)


    So, a question for everyone:

    How do you feel if someone comes back and tells you that they tested a solution you provided before...

  • RE: XML PATH QUESTION

    Lynn Pettis (2/15/2016)


    Eirikur Eiriksson (2/15/2016)


    Luis Cazares (2/15/2016)


    Eirikur Eiriksson (2/15/2016)


    Luis Cazares (2/15/2016)


    Eirikur,

    Any reason for using FLOOR on an integer division?

    Old oracle habit

    😎

    :sick:Oracle:sick:

    yup, the difference between \ and / :pinch:

    😎

    We got you...

  • RE: XML PATH QUESTION

    Luis Cazares (2/15/2016)


    Eirikur Eiriksson (2/15/2016)


    Luis Cazares (2/15/2016)


    Eirikur,

    Any reason for using FLOOR on an integer division?

    Old oracle habit

    😎

    :sick:Oracle:sick:

    yup, the difference between \ and / :pinch:

    😎

  • RE: XML PATH QUESTION

    Luis Cazares (2/15/2016)


    Eirikur,

    Any reason for using FLOOR on an integer division?

    Old oracle habit

    😎

  • RE: XML PATH QUESTION

    koti.raavi (2/15/2016)


    Hi to all,

    I have got a one column in table containing different Client ID's. There are 3000 rows in a table ...I need a data with comma separated(each row...

  • RE: How do we get the definition of tables via sql

    Phil Parkin (2/12/2016)


    Grumpy DBA (2/12/2016)


    "Give a man a fish and he eats for a day. Teach a man how to fish and he eats for a lifetime."

    I believe Brandie...

  • RE: How do we get the definition of tables via sql

    Quick and simple suggestion, encapsulate the SMO in a CLR.

    😎

  • RE: Adding quotes to dynamic SQL

    Slightly longer suggestion here

    😎

Viewing 15 posts - 3,841 through 3,855 (of 8,753 total)