Forum Replies Created

Viewing 15 posts - 2,701 through 2,715 (of 8,761 total)

  • RE: SQL Query/JOB Error

    gunadi.arunanto (11/16/2016)


    Thank you so much my Friend.

    So no impact in Production Server if I running both Script. it's correct??

    Rgds,

    Gunadi.

    It is sufficient to run either of the scripts, no need to...

  • RE: SQL Query/JOB Error

    gunadi.arunanto (11/16/2016)


    Hi Eirikur,

    Yes Correct MAP_MONTH is Empty.

    Thank you my friend,

    You are very welcome.

    😎

    1. So do you have step by step what can i to do the this case?

    You need to...

  • RE: Replace uppercase words with bold

    For fun, appended the three characters to the previous sample and into the BASE_DATA CTE

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    DECLARE @SAMPLE_STRING VARCHAR(2000) = 'Lorem ipsum dolor sit amet, CONSECtetur adipiSCIng elit....

  • RE: SQL Query/JOB Error

    gunadi.arunanto (11/15/2016)


    Hi Stephanie,

    I Attached result from : SELECT IDENT_CURRENT('MAP_MONTH') AS MAP_MONTH,

    ...

  • RE: Help needed in time conversion

    KGJ-Dev (11/15/2016)


    Hi,

    declare @val varchar (10) = "20:11";

    How do i display this as 20 hours and 11 minutes. If it is 00:20 then 20 minutes. If it's 20:00 then 20 hours....

  • RE: how to remove characters char(0) to char(31)

    Jeff Moden (11/15/2016)


    Eirikur Eiriksson (11/15/2016)


    Here is a quick solution, quite efficient

    😎

    DECLARE @pString VARCHAR(8000) = 'Chlu' + CHAR(30) + CHAR(2) + CHAR(0) + CHAR(13) + CHAR(10) +...

  • RE: how to remove characters char(0) to char(31)

    Here is a quick solution, quite efficient

    😎

    DECLARE @pString VARCHAR(8000) = 'Chlu' + CHAR(30) + CHAR(2) + CHAR(0) + CHAR(13) + CHAR(10) + CHAR(20) + ...

  • RE: Inline table-valued function to list numbers

    Jeff Moden (11/15/2016)


    Eirikur Eiriksson (11/15/2016)


    Just throwing a small spanner (1/4 inch) in the works, the pre "populating" method where the CTEs accumulate the full cardinality is roughly 10% slower than...

  • RE: Shredding XML in SSIS

    Quick XML XQuery shredding example

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    DECLARE @TXML XML = '<pllog>

    <log>

    <datetime>20151021183108</datetime>

    <ms>900</ms>

    <type>Info</type>

    <action>RES ONE Workspace initializing</action>

    <result>Version 9.10.0.1</result>

    </log>

    <log>

    <datetime>20151021183108</datetime>

    <ms>900</ms>

    <type>Info</type>

    <action>Session GUID</action>

    <result>{6E332C48-207F-4619-A25C-2B8716A19E31}</result>

    </log>

    <log>

    <datetime>20151021183109</datetime>

    <ms>134</ms>

    <type>Info</type>

    <action>TS client name</action>

    <result>LAPTOP-HEV</result>

    </log>

    </pllog>

    '

    SELECT

    XLOG.DATA.value('(datetime/text())[1]' ,'VARCHAR(50)' ) AS...

  • RE: Help with a query runs forever but returns nothing.

    Jeffery Williams (11/15/2016)


    Would love to. In fact I would kind of like to see it too!! 🙂 I could likely fix this if I did.

    The query just runs indefinitely...

  • RE: Are the posted questions getting worse?

    Y.B. (11/15/2016)


    My wife and I decided to check out some Mayan ruins near one of our ports of call during our cruise. I wasn't sure what to expect other...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (11/15/2016)


    VARCHAR(1) is my favorite data type of all time... Well, behind VARIANT, but hopefully that's going to be on the ash heap soon.

    Even better when the length isn't...

  • RE: Replace uppercase words with bold

    dothedev (11/15/2016)


    Wow, thanks! :w00t:

    Just needed to add some (finnish) characters in the IS_CAPS case and that's it!

    It's going to take a while to understand though 🙂

    Can you list the...

  • RE: Replace uppercase words with bold

    Luis Cazares (11/15/2016)


    Here's an option using a modified version of the pattern splitter explained in here: http://www.sqlservercentral.com/articles/String+Manipulation/94365/

    The only modification was to make it CASE sensitive.

    Nice one Luis!

    😎

  • RE: Replace uppercase words with bold

    Adi Cohn-120898 (11/15/2016)


    I've done few mistakes. Should have checked it better. The first mistake was that for some reason without noticing it, I've done a small modification ...

Viewing 15 posts - 2,701 through 2,715 (of 8,761 total)