Hi,
I am trying to add features using MsSql2008FeatureLayer. In the syntax of this layer we have to give connection string and tablename to load from database. I understand from this syntax is, always data should be available in table to load. If I am creating data using procedure in SQL Server
it is available only after execution of procedure. Is there any other way to assign that table to
MsSql2008FeatureLayer.
Thanks,
Goral
MsSql2008FeatureLayer
Goral,
I’m not sure whether I understand you clearly. The prerequisite of adding features into a SQL Server database is that the specific datatable should be there at first, otherwise it doesn’t know where it writes the data to. I guess this is the only way to assign the table. Any misunderstanding here, please correct me.
Thanks,
Johnny
Hi,
Thanks for reply. Ya your understanding is clear. I want to know that only. So from your answer I understood, if table does not exist then we cant use MSSQL2008FeatureLayer.
Thanks,
Goral
Yes, Goral, the only 3 methods that you can use are:
CreateTable(string connectionString, string tableName, SpatialDataType spatialDataType)
CreateTable(string connectionString, string tableName, SpatialDataType spatialDataType, IEnumerable<FeatureSourceColumn> columns)
CreateTable(string connectionString, string tableName, SpatialDataType spatialDataType, IEnumerable<FeatureSourceColumn> columns, OverwriteMode overwriteMode)
Thanks,
Johnny