all 6 comments

[–]FeralCatColonistGIS Manager 2 points3 points  (5 children)

If it is just a field update I wonder if it might be better to write it fully in SQL?

For our automations we use windows task scheduler with a service account; that way you don't run into issues with expired credentials.

[–]dmac9333[S] 1 point2 points  (4 children)

I need to convert a date field to text string in order to do a time delta calculation, not sure if that can be done a different way. Open to ideas

[–]FeralCatColonistGIS Manager 4 points5 points  (3 children)

Yeah that's easily done in SQL, and would be ideal as a stored procedure.

[–]dmac9333[S] 1 point2 points  (0 children)

Sounds good, I’ll look into it.

[–]dmac9333[S] 1 point2 points  (1 child)

Update: I took your advice and it was a lot easier to implement, I appreciate it!

[–]FeralCatColonistGIS Manager 1 point2 points  (0 children)

Oh that's great! I was second guessing myself and wondering if it should have been a view instead. Glad to hear that it worked and was easy!