Код: Выделить всё
update events set loc = geometry::STGeomFromText(concat('Point(', ltrim(STR(x, 99, 11)), ' ', ltrim(STR(y, 99, 11)), ')'),28406);
И просто перетащил мышкой таблицу events из подключения в Catalog. Слой точек - появился.
Но для того чтобы опубликовать слой нужно зарегистрировать его в gdb. Попробовал из контекстного меню в Catalog - Manage -> Register with Geodatabase получаю ошибку
В чем может быть причина?Failed to register with the Geodatabase.
Underlying DBMS error [Microsoft SQL Server Native Client 11.0]: the metadata could not be derermined because statement 'EXEC (@ececstring) in procedure 'sp_renamed' contains dynamic SQL. Consider using WITH RESULT SETS clause to explicitly describe the result set'