Difference between revisions of "SQWareProduction:mssql:lib:sqwmsq Global.lib"
m (Updated by BatchUser) |
m (Updated by BatchUser) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Functions explanation: | Functions explanation: | ||
<pre> | <pre> | ||
+ | gfsqw_CheckConn => | ||
gfsqw_ConvertBackslashToSlash => | gfsqw_ConvertBackslashToSlash => | ||
gfsqw_ConvertSlashToBackslash => | gfsqw_ConvertSlashToBackslash => | ||
gfsqw_EvalGlobalVar | gfsqw_EvalGlobalVar | ||
gfsqw_ExecSql => | gfsqw_ExecSql => | ||
+ | gfsqw_ExecSql $gvsqw_TmpFile.sql >$gvsqw_TmpFile | ||
gfsqw_ExecSql_bsqldb => | gfsqw_ExecSql_bsqldb => | ||
− | gfsqw_ExecSql | + | gfsqw_ExecSql "select distinct 'RDS_ENV' from master.sys.server_principals where name = 'rdsa'" 2>&1| tr -d "\015" >$gvsqw_TmpFile |
− | |||
gfsqw_ExecSql "select @@version" 2>&1| tr -d "\015" >$gvsqw_TmpFile | gfsqw_ExecSql "select @@version" 2>&1| tr -d "\015" >$gvsqw_TmpFile | ||
gfsqw_ExecSql "sp_helpdb '$lvsqw_DbName'" >$gvsqw_TmpFile | gfsqw_ExecSql "sp_helpdb '$lvsqw_DbName'" >$gvsqw_TmpFile | ||
gfsqw_ExecXpCmdShell => | gfsqw_ExecXpCmdShell => | ||
− | |||
gfsqw_FormatHtmlMessages => | gfsqw_FormatHtmlMessages => | ||
gfsqw_GenDatabasesList => | gfsqw_GenDatabasesList => | ||
+ | gfsqw_GenericExecFisql => | ||
gfsqw_GenericExecSql => | gfsqw_GenericExecSql => | ||
+ | gfsqw_GenericExecSql $lvsqw_GenExecSqlFile 2>&1 | ||
+ | gfsqw_GenericExecSql $lvsqw_GenExecSqlFile 2>&1 | ||
gfsqw_GenericExecSql_bsqldb => | gfsqw_GenericExecSql_bsqldb => | ||
gfsqw_GenericExecSql_bsqldb $lvsqw_GenExecSqlFile 2>&1 | gfsqw_GenericExecSql_bsqldb $lvsqw_GenExecSqlFile 2>&1 | ||
− | |||
− | |||
gfsqw_GetVersion => | gfsqw_GetVersion => | ||
gfsqw_IsXpCmdShellEnabled => | gfsqw_IsXpCmdShellEnabled => | ||
− | + | gfsqw_IsXpCmdShellEnabledGlobal => | |
gfsqw_LockForXpCmdShell => | gfsqw_LockForXpCmdShell => | ||
gfsqw_ManageParfile => | gfsqw_ManageParfile => | ||
gfsqw_Ptree $$ >> $lvsqw_LockFile | gfsqw_Ptree $$ >> $lvsqw_LockFile | ||
+ | gfsqw_Ptree ${gvsqw_GlobalPid} >>$gvsqw_RootCfg/need_xp_cmdshell.$$ | ||
gfsqw_TempFile "$echo $gvsqw_ProgName|sed 's,.ksh,,'|sed 's,sqwmsq_,,' => " | gfsqw_TempFile "$echo $gvsqw_ProgName|sed 's,.ksh,,'|sed 's,sqwmsq_,,' => " | ||
+ | gfsqw_XpCmdShellGlobalDisable => | ||
+ | gfsqw_XpCmdShellGlobalEnable => | ||
</pre> | </pre> | ||
<br> | <br> | ||
{{SQWareProductionSurchargeLib|mssql|Msq|sqwmsq_Global.lib}} | {{SQWareProductionSurchargeLib|mssql|Msq|sqwmsq_Global.lib}} | ||
<br> | <br> |
Latest revision as of 17:47, 21 July 2024
shell functions library $gvsqw_MsqBin/../lib/sqwmsq_Global.lib:
central lib of generic fonctions for mssql
Functions explanation:
gfsqw_CheckConn => gfsqw_ConvertBackslashToSlash => gfsqw_ConvertSlashToBackslash => gfsqw_EvalGlobalVar gfsqw_ExecSql => gfsqw_ExecSql $gvsqw_TmpFile.sql >$gvsqw_TmpFile gfsqw_ExecSql_bsqldb => gfsqw_ExecSql "select distinct 'RDS_ENV' from master.sys.server_principals where name = 'rdsa'" 2>&1| tr -d "\015" >$gvsqw_TmpFile gfsqw_ExecSql "select @@version" 2>&1| tr -d "\015" >$gvsqw_TmpFile gfsqw_ExecSql "sp_helpdb '$lvsqw_DbName'" >$gvsqw_TmpFile gfsqw_ExecXpCmdShell => gfsqw_FormatHtmlMessages => gfsqw_GenDatabasesList => gfsqw_GenericExecFisql => gfsqw_GenericExecSql => gfsqw_GenericExecSql $lvsqw_GenExecSqlFile 2>&1 gfsqw_GenericExecSql $lvsqw_GenExecSqlFile 2>&1 gfsqw_GenericExecSql_bsqldb => gfsqw_GenericExecSql_bsqldb $lvsqw_GenExecSqlFile 2>&1 gfsqw_GetVersion => gfsqw_IsXpCmdShellEnabled => gfsqw_IsXpCmdShellEnabledGlobal => gfsqw_LockForXpCmdShell => gfsqw_ManageParfile => gfsqw_Ptree $$ >> $lvsqw_LockFile gfsqw_Ptree ${gvsqw_GlobalPid} >>$gvsqw_RootCfg/need_xp_cmdshell.$$ gfsqw_TempFile "$echo $gvsqw_ProgName|sed 's,.ksh,,'|sed 's,sqwmsq_,,' => " gfsqw_XpCmdShellGlobalDisable => gfsqw_XpCmdShellGlobalEnable =>