Hi!<div><br></div><div>This is my sample code. I have no problems inserting strings ,integers and geometry etc. in one Insert command.</div><div>All values are inserted.</div><div><br></div><div><i> IInsert
insertCommand = (IInsert)m_Conn.CreateCommand(CommandType.CommandType_Insert);</i></div><div><i> insertCommand .SetFeatureClassName("ELECTRO_DATA")</i></div><div><div><i> FgfGeometryFactory factory = new FgfGeometryFactory();</i></div>
<div><i> IDirectPosition position = factory.CreatePositionXYZ(Objekt.StartPoint.X, Objekt.StartPoint.Y, 0.0);</i></div><div><i> IPoint point = factory.CreatePoint(position);</i></div><div><i> insertCommand.PropertyValues.Add(new PropertyValue(GEOMETRY_COLUMN, new GeometryValue(factory.GetFgf(point))));</i></div>
<div><i> insertCommand.PropertyValues.Add(new PropertyValue(ROTATION_COLUMN, new StringValue(bref.Rotation.ToString())));</i></div><div><i> insertCommand.PropertyValues.Add(new PropertyValue(LAYER_COLUMN, new StringValue(bref.Layer)));</i></div>
<div><i> insertCommand.PropertyValues.Add(new PropertyValue(BLOCK_COLUMN, new StringValue(bref.Name)));</i></div><div><i> insertCommand.PropertyValues.Add(new PropertyValue(XSCALE_COLUMN, new DecimalValue(bref.ScaleFactors.X)));</i></div>
<div><i> insertCommand.PropertyValues.Add(new PropertyValue(YSCALE_COLUMN, new DecimalValue(bref.ScaleFactors.Y)));</i></div><div><i> insertCommand.PropertyValues.Add(new PropertyValue(ZSCALE_COLUMN, new DecimalValue(bref.ScaleFactors.Z)));</i></div>
<div><i> insertCommand.PropertyValues.Add(new PropertyValue(PROJEKAT_COLUMN, new Int32Value(ProjectID)));</i></div><div><i><br></i></div><div><i> reader = command.Execute();</i></div><div><i> if (reader.ReadNext())</i></div>
<div><i> {</i></div></div><div><i><br></i></div><div><i> }</i></div><div> <i>reader.close();</i></div><div><br></div><div>What are the Oracle Data Types in the Oracle table? </div><div><br>
</div><div><br></div><div>Regards,</div><div>Simon</div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Nov 30, 2011 at 4:40 PM, mdelsinne <span dir="ltr"><<a href="mailto:mdelsinne@gmail.com">mdelsinne@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">If I do declare no geometry column, Oracle ID inserted. If there is a<br>
geometry column no ID and no primary key.<br>
<br>
But also why he never inserts while the other values is a simple string.<br>
<br>
Have you any idea?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/insert-error-control-properties-with-KingOracle-tp7046704p7047193.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/insert-error-control-properties-with-KingOracle-tp7046704p7047193.html</a><br>
</font></span><div class="HOEnZb"><div class="h5">Sent from the FDO Internals mailing list archive at Nabble.com.<br>
_______________________________________________<br>
fdo-internals mailing list<br>
<a href="mailto:fdo-internals@lists.osgeo.org">fdo-internals@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/fdo-internals" target="_blank">http://lists.osgeo.org/mailman/listinfo/fdo-internals</a><br>
</div></div></blockquote></div><br></div>