OGR2OGR -overwrite mssql table is appending insteadShapefile to MSSQL with ogr2ogr fails to make...

What has been your most complicated TikZ drawing?

Why are the outputs of printf and std::cout different

Does splitting a potentially monolithic application into several smaller ones help prevent bugs?

Why did it take so long to abandon sail after steamships were demonstrated?

Identifying the interval from A♭ to D♯

PTIJ: Who should pay for Uber rides: the child or the parent?

How to generate globally unique ids for different tables of the same database?

Theorems like the Lovász Local Lemma?

SQL Server Primary Login Restrictions

It's a yearly task, alright

Making a sword in the stone, in a medieval world without magic

Replacing Windows 7 security updates with anti-virus?

Counting certain elements in lists

Did CPM support custom hardware using device drivers?

Have researchers managed to "reverse time"? If so, what does that mean for physics?

Could the Saturn V actually have launched astronauts around Venus?

At what level can a dragon innately cast its spells?

Instead of Universal Basic Income, why not Universal Basic NEEDS?

How to explain that I do not want to visit a country due to personal safety concern?

Is it possible that AIC = BIC?

Why are there 40 737 Max planes in flight when they have been grounded as not airworthy?

How to deal with taxi scam when on vacation?

Humanity loses the vast majority of its technology, information, and population in the year 2122. How long does it take to rebuild itself?

Why must traveling waves have the same amplitude to form a standing wave?



OGR2OGR -overwrite mssql table is appending instead


Shapefile to MSSQL with ogr2ogr fails to make connectionogr2ogr/python overwrite PostGIS tableESRI Shapefile not loading into SQL Serverogr2ogr bringing up “memory allocation error”OGR2OGR EPSG:27700 Shapefile To EPSG:4326 MSSQL Table With GeographyInvalid KML after ogr2ogr export to MSSQLImporting SHP to MSSQL using OGR2OGR?Converting MSSQL linked MapInfo Tab file to a shapefile using ogr2ogrUploading TAB data to MSSQL using ogr2ogrogr2ogr Warning 502: Field name 'yyy xx' contains invalid characters. 'yyy_xx' will be used instead













0















I am running



Command '['C:\OSGeo4W\bin\ogr2ogr.exe', '-progress', '-skipfailures', '-overwrite', '-lco', 'UPLOAD_GEOM_FORMAT=wkt',
'-t_srs', 'EPSG:28354', '-f', '-overwrite', 'MSSQLSpatial', 'MSSQL:Server=xxx;Database=xxxGIS_Test;Trusted_Connect
ion=True', 'D:\GIS_SourceData\xxx\HY_WATERBODY_STATE.tab', '-nln', 'DSE_HY_WATERBODY_STATE']'


But this is appending records to the table in MSSQL instead of overwriting the whole table?



Is there some switch to just tell it to update records/insert new ones or what should I do to get -overwrite to not append?



enter image description here



The _backup view is the original that was just backed up before running the command.









share



























    0















    I am running



    Command '['C:\OSGeo4W\bin\ogr2ogr.exe', '-progress', '-skipfailures', '-overwrite', '-lco', 'UPLOAD_GEOM_FORMAT=wkt',
    '-t_srs', 'EPSG:28354', '-f', '-overwrite', 'MSSQLSpatial', 'MSSQL:Server=xxx;Database=xxxGIS_Test;Trusted_Connect
    ion=True', 'D:\GIS_SourceData\xxx\HY_WATERBODY_STATE.tab', '-nln', 'DSE_HY_WATERBODY_STATE']'


    But this is appending records to the table in MSSQL instead of overwriting the whole table?



    Is there some switch to just tell it to update records/insert new ones or what should I do to get -overwrite to not append?



    enter image description here



    The _backup view is the original that was just backed up before running the command.









    share

























      0












      0








      0








      I am running



      Command '['C:\OSGeo4W\bin\ogr2ogr.exe', '-progress', '-skipfailures', '-overwrite', '-lco', 'UPLOAD_GEOM_FORMAT=wkt',
      '-t_srs', 'EPSG:28354', '-f', '-overwrite', 'MSSQLSpatial', 'MSSQL:Server=xxx;Database=xxxGIS_Test;Trusted_Connect
      ion=True', 'D:\GIS_SourceData\xxx\HY_WATERBODY_STATE.tab', '-nln', 'DSE_HY_WATERBODY_STATE']'


      But this is appending records to the table in MSSQL instead of overwriting the whole table?



      Is there some switch to just tell it to update records/insert new ones or what should I do to get -overwrite to not append?



      enter image description here



      The _backup view is the original that was just backed up before running the command.









      share














      I am running



      Command '['C:\OSGeo4W\bin\ogr2ogr.exe', '-progress', '-skipfailures', '-overwrite', '-lco', 'UPLOAD_GEOM_FORMAT=wkt',
      '-t_srs', 'EPSG:28354', '-f', '-overwrite', 'MSSQLSpatial', 'MSSQL:Server=xxx;Database=xxxGIS_Test;Trusted_Connect
      ion=True', 'D:\GIS_SourceData\xxx\HY_WATERBODY_STATE.tab', '-nln', 'DSE_HY_WATERBODY_STATE']'


      But this is appending records to the table in MSSQL instead of overwriting the whole table?



      Is there some switch to just tell it to update records/insert new ones or what should I do to get -overwrite to not append?



      enter image description here



      The _backup view is the original that was just backed up before running the command.







      sql-server ogr2ogr





      share












      share










      share



      share










      asked 4 mins ago









      GeorgeCGeorgeC

      2,89132980




      2,89132980






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "79"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315590%2fogr2ogr-overwrite-mssql-table-is-appending-instead%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f315590%2fogr2ogr-overwrite-mssql-table-is-appending-instead%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Щит и меч (фильм) Содержание Названия серий | Сюжет |...

          is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

          Meter-Bus Содержание Параметры шины | Стандартизация |...