查詢 MS SQL Server 的SQL指令log(2016以上)
語法 SELECT st.text as sql_statement, qs.creation_time as plan_last_compiled, qs.last_execution_time as plan_last_executed, qs.execution_count as plan_executed_count, qp.query_plan FROM sys.dm_exec_query_stats
語法 SELECT st.text as sql_statement, qs.creation_time as plan_last_compiled, qs.last_execution_time as plan_last_executed, qs.execution_count as plan_executed_count, qp.query_plan FROM sys.dm_exec_query_stats
指令 Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
安裝 SqlServer 模組 Install-Module -Name SqlServer 程式碼 Import-Module -Name SqlServer $serverName = "your_server_name" $databaseName = "your_database_name"
新增 line.ps1 param ( [Parameter(Mandatory=$true)] [string]$Message, [Parameter(Mandatory=$true)] [string]$StickerPackageId, [Parameter(Mandatory=$true)] [string]$StickerId, [Parameter(Mandatory=$true)] [string]$ImageThumbnail, [Parameter(Mandatory=$true)] [string]$ImageFullsize ) $Headers
vi /etc/syslog.conf >> kern.* /home/log/kern.log #移除,自訂路徑 service syslog restart #日誌轉發 iptables -A FORWARD -i $INIF -o $EXTIF
vi /etc/apache2/mods-available/mime.conf AddType image/svg+xml svg AddType image/svg+xml svgz 或 vi .htaccess AddType image/svg+xml svg AddType image/svg+xml svgz AddEncoding