<div dir="ltr">Hi Martin,<div><br></div><div>Can I get the sample data for this? </div><div>Looks like more than one table is set "IDENTITY_INSERT ON" at the same time.</div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-12 16:10 GMT+02:00 Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com" target="_blank">landa.martin@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
2018-05-12 15:51 GMT+02:00 Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>>:<br>
<br>
> ERROR 1: Failed to set identity insert on layer, [Microsoft][SQL Server Native C<br>
> lient 11.0][SQL Server]IDENTITY_INSERT is already ON for table 'kn2.dbo.par'. Ca<br>
> nnot perform SET operation for table 'dbo.bud'..<br>
> ERROR 1: Unable to write feature 1 from layer BUD.<br>
> ERROR 1: Terminating translation prematurely after failed<br>
> translation of layer BUD (use -skipfailures to skip errors)<br>
<br>
</span>Input DB has about 50 layers, see<br>
<br>
...<br>
1: PAR (None)<br>
2: BUD (None)<br>
3: ZPOCHN (None)<br>
...<br>
<br>
It seems that all records from PAR layer are sucessfully writen to<br>
target PAR table in MSSQL. Writing features from second layer (BUD)<br>
fails. No records written. It must be related to BCP. Martin<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Martin Landa<br>
<a href="http://geo.fsv.cvut.cz/gwiki/Landa" rel="noreferrer" target="_blank">http://geo.fsv.cvut.cz/gwiki/<wbr>Landa</a><br>
<a href="http://gismentors.cz/mentors/landa" rel="noreferrer" target="_blank">http://gismentors.cz/mentors/<wbr>landa</a><br>
______________________________<wbr>_________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/gdal-dev</a></div></div></blockquote></div><br></div>