Skip to main content
Solved

Hi everyone, I want to search for all Feature Classes in our SDE and list out only the ones that have a field name 'SDE_UPDATE' (date field) with a criteria that queries the ones that have been updated in past 10 days. Any example workbench to sha

  • September 30, 2022
  • 7 replies
  • 36 views

Forum|alt.badge.img
Hi everyone, I want to search for all Feature Classes in our SDE and list out only the ones that have a field name 'SDE_UPDATE' (date field) with a criteria that queries the ones that have been updated in past 10 days. Any example workbench to share?

Best answer by carmijo

carmijo wrote:

Hi @akala​ , This is certainly possible. I would start with a sql excutor to read all tables from SDE, then feed the results into a feature reader, set to only read the schema from each table. Then you can find those that have the field you're looking for, read them in and test the max sde_update value to see if it meets your 10 day requirement.

Here's a good start. you'll have to modify the all_tables query to make sure you only get what you want. i've highlighted the other important items. image--

If i've provided something helpful, please upvote the comment. If i've provided a solution, please mark it as 'Best Answer'. This helps the community find solutions when your question is referenced.

If I didn't provide a solution, please let me know if I can help further. Thanks! 🙂

View original
Did this help you find an answer to your question?

7 replies

carmijo
Supporter
Forum|alt.badge.img+11
  • Supporter
  • September 30, 2022

Hi @akala​ , This is certainly possible. I would start with a sql excutor to read all tables from SDE, then feed the results into a feature reader, set to only read the schema from each table. Then you can find those that have the field you're looking for, read them in and test the max sde_update value to see if it meets your 10 day requirement.


carmijo
Supporter
Forum|alt.badge.img+11
  • Supporter
  • Best Answer
  • September 30, 2022
carmijo wrote:

Hi @akala​ , This is certainly possible. I would start with a sql excutor to read all tables from SDE, then feed the results into a feature reader, set to only read the schema from each table. Then you can find those that have the field you're looking for, read them in and test the max sde_update value to see if it meets your 10 day requirement.

Here's a good start. you'll have to modify the all_tables query to make sure you only get what you want. i've highlighted the other important items. image--

If i've provided something helpful, please upvote the comment. If i've provided a solution, please mark it as 'Best Answer'. This helps the community find solutions when your question is referenced.

If I didn't provide a solution, please let me know if I can help further. Thanks! 🙂


Forum|alt.badge.img
  • Author
  • September 30, 2022
carmijo wrote:

Here's a good start. you'll have to modify the all_tables query to make sure you only get what you want. i've highlighted the other important items. image--

If i've provided something helpful, please upvote the comment. If i've provided a solution, please mark it as 'Best Answer'. This helps the community find solutions when your question is referenced.

If I didn't provide a solution, please let me know if I can help further. Thanks! 🙂

Awesome - Thanks a ton Carmijo for your time and for this well documented and precise example.


carmijo
Supporter
Forum|alt.badge.img+11
  • Supporter
  • September 30, 2022
carmijo wrote:

Here's a good start. you'll have to modify the all_tables query to make sure you only get what you want. i've highlighted the other important items. image--

If i've provided something helpful, please upvote the comment. If i've provided a solution, please mark it as 'Best Answer'. This helps the community find solutions when your question is referenced.

If I didn't provide a solution, please let me know if I can help further. Thanks! 🙂

happy to help. fun problem to solve


Forum|alt.badge.img
  • Author
  • September 30, 2022
carmijo wrote:

Here's a good start. you'll have to modify the all_tables query to make sure you only get what you want. i've highlighted the other important items. image--

If i've provided something helpful, please upvote the comment. If i've provided a solution, please mark it as 'Best Answer'. This helps the community find solutions when your question is referenced.

If I didn't provide a solution, please let me know if I can help further. Thanks! 🙂

Thanks again - I posted another problem in community platform that deals with pagination and token refreshing using API. Let me know if you have any inputs/experience with such a problem.

 

I am trying to extract wells data from Enverus (www.enverus.com) but their API has a limit of 100000 records. Can anyone share examples for pagination as well as how to keep the Token active all the time (instead of manually updating it)


carmijo
Supporter
Forum|alt.badge.img+11
  • Supporter
  • September 30, 2022
carmijo wrote:

Here's a good start. you'll have to modify the all_tables query to make sure you only get what you want. i've highlighted the other important items. image--

If i've provided something helpful, please upvote the comment. If i've provided a solution, please mark it as 'Best Answer'. This helps the community find solutions when your question is referenced.

If I didn't provide a solution, please let me know if I can help further. Thanks! 🙂

i'm afraid i can't help with that one. Good luck though!


Forum|alt.badge.img
  • Author
  • September 30, 2022
carmijo wrote:

Here's a good start. you'll have to modify the all_tables query to make sure you only get what you want. i've highlighted the other important items. image--

If i've provided something helpful, please upvote the comment. If i've provided a solution, please mark it as 'Best Answer'. This helps the community find solutions when your question is referenced.

If I didn't provide a solution, please let me know if I can help further. Thanks! 🙂

No worries - Thanks for all your time and efforts!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings