Forum Replies Created

Viewing 15 posts - 31 through 45 (of 89 total)

  • RE: Importing from XML to SQL 2014

    andycadley - Thursday, September 27, 2018 11:30 AM

    The letters are just table and column aliases they could be FISH(CAT) and they'd still...

  • RE: Importing from XML to SQL 2014

    So is there meaning for the M.A.nodes etc or can you use what ever combo letters you want as long as the format is the same. ie X.X.nodes

  • RE: Importing from XML to SQL 2014

    I am importing the session data and am having trouble understanding. Here is the code.
    -- Start Place
    Select
    M.A.value('@Type','varchar(10)') As [Type],
    M.A.value('@EventID','varchar(10)') As EventID,

  • RE: Importing from XML to SQL 2014

    Can someone recommend the best way to output my query's to a .json(txt) file. There are the ways I have been reading about. My project is a simple database which...

  • RE: Importing from XML to SQL 2014

    TheFirstOne - Friday, September 14, 2018 3:21 PM

    So I am trying to  output the query to a .txt(.json) file and am really...

  • RE: Importing from XML to SQL 2014

    So I am trying to  output the query to a .txt(.json) file and am really having a hard time. I have used  BCP, xp_cmdshell and various others. They all seem...

  • RE: Importing from XML to SQL 2014

    Instead of joining two tables data with a JOIN statement I just added the firstname, lastname and AG to the scores table. Would that be the best way?

  • RE: Importing from XML to SQL 2014

    I changed it to get 3 decimal places,
    SC.S.value('@avgscore', 'decimal(10,3)' ) As AvgScore,

    One thing I noticed is the Event_Total table has extra data in...

  • RE: Importing from XML to SQL 2014

    Ok so here is the meat and potatoes. I have 4 tables which are Athletes, Scores, Places and Event_Total. I am using Event Total table as it has all the...

  • RE: Importing from XML to SQL 2014

    TheFirstOne - Thursday, September 13, 2018 2:13 PM

    andycadley - Thursday, September 13, 2018 1:48 PM

  • RE: Importing from XML to SQL 2014

    andycadley - Thursday, September 13, 2018 1:48 PM

    9.2 isn't an int, use a suitable decimal or float type for an average.

    I feel...

  • RE: Importing from XML to SQL 2014

    Ok, I am getting somewhere. I will post the whole solution but I am having trouble in one spot. I am sorting on the Avgscore column and since it is...

  • RE: Importing from XML to SQL 2014

    andycadley - Wednesday, September 12, 2018 12:36 PM

    Do the replace after converting to JSON, i.e.:

    Select
     Replace(
      Replace(
      (Select * from #Event_Total for json...

  • RE: Importing from XML to SQL 2014

    That worked but now it is in one line and it gets cut off after the max 8192 char count for a column. The JSON output is the last code....

  • RE: Importing from XML to SQL 2014

    I tried this but no change. I am running out of options.
    UPDATE #Event_Total SET Judge1Score = REPLACE(Judge1Score,CHAR(13),'')
    UPDATE #Event_Total SET Judge2Score = REPLACE(Judge2Score,CHAR(13),'')
    UPDATE #Event_Total SET...

Viewing 15 posts - 31 through 45 (of 89 total)