Elivagner Barros is pleased to share this MDL application that allows you to automatically connect to an Oracle Spatial or SQL Server database, by using the MS_GEOINITCMD parameter. It does this without exposing the password.
You can read more about this tool download it via the following link:
Bentley Map C# Addin to establish Oracle Spatial and SQLServer connection on startup (without exposing the password)
Attached a PDF of the above article for your reference:
Note: This tool is supplied as is. This application does not come with support. Bentley Systems Inc. and the author of this programs assume no liability for damages direct, indirect, or consequential, which may result from the use of this programs. Use this application at your own risk.