jakoubek / sqlanywhere-useful-functions

Some useful functions for SQL Anywhere

Repository from Github https://github.comjakoubek/sqlanywhere-useful-functionsRepository from Github https://github.comjakoubek/sqlanywhere-useful-functions

Useful functions for a SQL Anywhere databases

This is a collection of some useful functions that I regularly put into SQL Anywhere databases.

Procedures

Send_Message

  • useful for outputting debug infos from other procedures
  • sends a string both to the user's console (iSQL) and the server log

RefreshMaterializedViews

Materialized views deliver their data without the need the execute the query which is more performant than a traditional query. But this comes at a price: the data can be stale. You have to periodically refresh the materialized views.

This procedure takes all materialized views in your database and refreshes them at once.

About

Some useful functions for SQL Anywhere

License:MIT License


Languages

Language:PLpgSQL 78.6%Language:SQLPL 21.4%