5

How can I automatically load a table stored on a network share into SDE when the original table is edited?

Environment is ESRI 10.1 ArcSDE on SQL Server. Preference for python or existing GP tools. Table would be a csv or xlsx.

Any ideas, info, or pointers would be helpful.

asked Apr 25, 2014 at 20:46
1
  • I know it isn't the question you asked, by why don't you just stop people from updating the table? SQL Server has a security for just that reason. Commented Apr 28, 2014 at 5:35

1 Answer 1

2

This could be implemented as a multiple steps process:

  1. You could run a Python script that would evaluate a .csv or .xls file and compare it to the latest modified version you have loaded into an SDE geodatabase.

  2. If there any changes found, then you would convert the source file into a table by using Table to Table (csv) or Excel to Table (since 10.2 only) (xls) GP tools (both of them of course available from Python too via arcpy site package). The output data could be stored in_memory or as an intermediate data somewhere on the disk.

  3. You run Truncate Table GP tool on the SDE geodatabase table and then Append to move the created earlier table rows into an existing table.

answered Apr 26, 2014 at 8:13

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.