Forum Replies Created

Viewing 15 posts - 3,481 through 3,495 (of 8,753 total)

  • RE: openjson - google books api

    Quick suggestion, simply use OPENJSON with the path name, no need to use JSON_QUERY

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    --

    DECLARE @returnedCitation NVARCHAR(MAX) = N'{

    "kind": "books#volumes",

    "totalItems": 1,

    "items": [

    {

    ...

  • RE: Parsing Non-Standard String into a Standard Format

    Quick suggestion that looks first for 3 digits and then 6 digits in the remainder of the string

    😎

    USE TEEST;

    GO

    SET NOCOUNT ON;

    IF OBJECT_ID(N'tempdb..#TestString') IS NOT NULL DROP TABLE #TestString;

    create table #TestString(OldString...

  • RE: BatchRequest\Sec Very Low

    VastSQL (7/11/2016)


    Hi Experts,

    The BatchRequest\Sec value for our OLTP system is showing 150 for the most critical time. I felt this as very low , can you guide me on what...

  • RE: Need help to modify XML file using T-SQL

    durga.palepu (7/10/2016)


    Thank you, that's what exactly I am looking for and its helped me a lot.

    I will focus on XML schredding further and learn about it deeper.

    You are very welcome.

    😎

  • RE: Replacing self closing tag for empty tag in for XML explicit

    ulisseslourenco (7/7/2016)


    People,

    I have a tsql code with for XML explicit and when there are empty value the code must be <tag><tag/> instead of

    <tag/>, but I didn't know...

  • RE: Modifying XML with into or after

    Quick thought, only one modification can be done with modify at the time, therefore it may be simpler to use either a query or FLWOR (For, Let, Where, Order by,...

  • RE: Need help to modify XML file using T-SQL

    Here is a quick solution that starts by selecting the DataArea node and then remove the Sync node from the selection, should be enough to get you passed this hurdle.

    😎

    DECLARE...

  • RE: Sliding window partition error: Failed on a job step.

    ffarouqi (7/9/2016)


    Hi Guys,

    I am stuck in a situation where the sliding window job is throwing me an error as such. I am not really sure on how to deal with...

  • RE: Need help with sql query

    Missed the three hours earlier, here is an improved query

    😎

    ;WITH SAMPLE_DATA(ID,datetime,rain) AS

    (SELECT ID,CONVERT(DATETIME,datetime,112),rain FROM (VALUES

    (1,'20160101 01:00:00', 0)

    ,(1,'20160101 03:00:00', 8)

    ,(1,'20160101 05:00:00', 6)

    ,(1,'20160101 06:00:00', 0)

    ,(2,'20160101 08:00:00', 6)

    ,(2,'20160101 10:00:00', 0)

    ,(2,'20160101 15:00:00', 0)

    ,(3,'20160101...

  • RE: Need help with sql query

    Quick suggestion, look up the SIGN function

    😎

    ;WITH SAMPLE_DATA(ID,datetime,rain) AS

    (SELECT ID,CONVERT(DATETIME,datetime,112),rain FROM (VALUES

    (1,'20160101 01:00:00', 0)

    ,(1,'20160101 03:00:00', 8)

    ,(1,'20160101 05:00:00', 6)

    ,(1,'20160101 06:00:00', 0)

    ,(2,'20160101 08:00:00', 6)

    ,(2,'20160101 10:00:00', 0)

    ,(2,'20160101 15:00:00', 0)

    ,(3,'20160101 16:00:00', 0)

    ,(3,'20160101 20:00:00',10)

    ,(3,'20160101...

  • RE: Are the posted questions getting worse?

    Jeff Moden (7/3/2016)


    Eirikur Eiriksson (7/2/2016)


    Spam, spam and again spam 🙁 Why on earth is it so hard to tackle this problem on sqlservercentral.com???

    😎

    From what I've heard, it's because they don't...

  • RE: Are the posted questions getting worse?

    Michael L John (7/5/2016)


    Can anyone in the U.K. (or is it K minus U these days?) make a recommendation for technical training? We have a colleague in London who's...

  • RE: Help creating a dynamic table of numbers

    Quick thoughts Thomas, do not use a while loop as there is no need for it and neither a table variable which will only introduce extra pressure on the tempdb.

    😎

    Here...

  • RE: Monitoring Log File Autogrowth.

    Have a look at Brent's excellent post on the subject[/url]

    😎

  • RE: Are the posted questions getting worse?

    Spam, spam and again spam 🙁 Why on earth is it so hard to tackle this problem on sqlservercentral.com???

    😎

Viewing 15 posts - 3,481 through 3,495 (of 8,753 total)