Retrieve language within a custom database connection script

Problem statement

Can we retrieve the user’s language within a custom database connection script?

Solution

We can not retrieve the user’s language in this case because no context is provided to custom database scripts.