diff --git a/samples/features/r-services/README.md b/samples/features/r-services/README.md index 349de333..7d7a1148 100644 --- a/samples/features/r-services/README.md +++ b/samples/features/r-services/README.md @@ -1,6 +1,10 @@ -# R Services +# Samples for SQL Server R Services -Placeholder. +[Telco Customer Churn](Telco Customer Churn) + +Telco Customer Churn sample using SQL Server R Services. + +[SSMS Custom Reports](SSMS-Custom-Reports) + +Custom reports for SQL Server R Services built using SQL Server Report Builder. The reports can be added to SQL Server Management Studio to view various configuration and runtime information about R scripts execution in SQL Server. -For now, refer to: -[https://github.com/Microsoft/SQL-Server-R-Services-Samples] (https://github.com/Microsoft/SQL-Server-R-Services-Samples) diff --git a/samples/features/r-services/SSMS-Custom-Reports/R Services - Active Sessions.rdl b/samples/features/r-services/SSMS-Custom-Reports/R Services - Active Sessions.rdl new file mode 100644 index 00000000..be6f489d --- /dev/null +++ b/samples/features/r-services/SSMS-Custom-Reports/R Services - Active Sessions.rdl @@ -0,0 +1,1588 @@ + + + 0 + + + + SQL + Data Source=. + true + + Integrated + f68705bb-df33-493e-b2ea-e8070ba8d88b + + + + + + SqlConnection + select r.session_id, r.blocking_session_id, r.status + , db_name(s.database_id) as database_name, s.login_name + , r.wait_time, r.wait_type, r.last_wait_type + , r.total_elapsed_time, r.reads, r.logical_reads, r.writes + , er.language as script_type, er.degree_of_parallelism, er.external_user_name + from sys.dm_exec_requests as r + join sys.dm_external_script_requests as er + on r.external_script_request_id = er.external_script_request_id + join sys.dm_exec_sessions as s + on s.session_id = r.session_id; + true + + + + session_id + System.Int16 + + + blocking_session_id + System.Int16 + + + status + System.String + + + wait_type + System.String + + + database_name + System.String + + + login_name + System.String + + + wait_time + System.Int32 + + + last_wait_type + System.String + + + total_elapsed_time + System.Int32 + + + reads + System.Int64 + + + writes + System.Int64 + + + logical_reads + System.Int64 + + + script_type + System.String + + + degree_of_parallelism + System.Int32 + + + external_user_name + System.String + + + + + + + + + + + + + 1in + + + 1in + + + 0.63333in + + + 1in + + + + + 0.25in + + + + + true + true + + + + + Total Elapsed Time (ms) + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Reads + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Logical Reads + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Writes + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + =Sum(Fields!total_elapsed_time.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!reads.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!logical_reads.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Sum(Fields!writes.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + 1in + + + true + true + + + + + Session ID + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + Blocking Session ID + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + Status + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + Wait Type + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + Wait Time + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + Last Wait Type + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.525in + + + true + true + + + + + Script Type + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.475in + + + true + true + + + + + DOP + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + Database Name + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + Login Name + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1.34167in + + + true + true + + + + + External User Name + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =Fields!session_id.Value + + + + + =Fields!session_id.Value + + + + 1in + + + true + true + + + + + =Fields!session_id.Value + + + + + + #9eb6e4 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =Fields!blocking_session_id.Value + + + + + =Fields!blocking_session_id.Value + + + + 1in + + + true + true + + + + + =Fields!blocking_session_id.Value + + + + + + #c6daf8 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =Fields!status.Value + + + + + =Fields!status.Value + + + + 1in + + + true + true + + + + + =Fields!status.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =Fields!wait_type.Value + + + + + =Fields!wait_type.Value + + + + 1in + + + true + true + + + + + =Fields!wait_type.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + =Fields!wait_time.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =Fields!last_wait_type.Value + + + + + =Fields!last_wait_type.Value + + + + + + 1in + + + true + true + + + + + =Fields!last_wait_type.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =Fields!script_type.Value + + + + + =Fields!script_type.Value + + + + 0.525in + + + true + true + + + + + =Fields!script_type.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =Fields!degree_of_parallelism.Value + + + + + =Fields!degree_of_parallelism.Value + + + + 0.475in + + + true + true + + + + + =Fields!degree_of_parallelism.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + =Fields!database_name.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + + + true + true + + + + + =Fields!login_name.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + + =Fields!external_user_name.Value + + + + + =Fields!external_user_name.Value + + + + 1.34167in + + + true + true + + + + + =Fields!external_user_name.Value + + + + + + #e6eefc + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + external_script_requests + 1.10833in + 0.5in + 13.975in + + + + + + true + true + + + + + SQL Server R Services - Active Sessions + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + This report shows the currently executing R scripts on the server. + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + View SQL script + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + 1.64667in + + + + + 13.975in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 9.975in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Property Value + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + =Fields!property_name.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!property_value.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + After + + + + + + + R_Properties + 1.53333in + 0.5in + 8.6375in + + + + + + + + + 1in + + + 1in + + + 1.25833in + + + 1in + + + + + 0.25in + + + + + true + true + + + + + R Services Installed + + + + + + + Textbox2 + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + External Scripts Enabled + + + + + + + Textbox3 + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Implied Authentication Enabled + + + + + + + Textbox5 + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + TCP/IP Enabled + + + + + + + Textbox6 + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.35833in + + + + + + + + =First(Fields!IsRServicesInstalled.Value) + 1 + NoOutput + + None + Tablix1 + + NaN + 1 + + + NaN + 1 + + None + + External + + + 1 + + + + 0 + 1 + + + 0 + 1 + + Red + 1 + ThreeSymbolCross + + External + + + + + + 1 + 1 + + + 1 + 1 + + Green + 1 + ThreeSymbolCheck + + External + + + + + 0 + + ThreeCircledSymbols + + 4 + 4 + 92 + 92 + + + true + + + + Gainsboro + DiagonalLeft + Gray + None + 0pt + + + + + + External + + + + + External + + + Feature_Settings + + + White + + + + + + + + + + + =Sum(Fields!ExternalScriptsEnabled.Value) + 1 + NoOutput + + None + Tablix1 + + NaN + 1 + + + NaN + 1 + + None + + External + + + 1 + + + + 0 + 1 + + + 0 + 1 + + Red + 1 + ThreeSymbolCross + + External + + + + + + 1 + 1 + + + 1 + 1 + + Green + 1 + ThreeSymbolCheck + + External + + + + + 0 + + ThreeCircledSymbols + + 4 + 4 + 92 + 92 + + + true + + + + Gainsboro + DiagonalLeft + Gray + None + 0pt + + + + + + External + + + + + External + + + Feature_Settings + + + White + + + + + + + + + + + =Sum(Fields!ImpliedAuthenticationEnabled.Value) + 1 + NoOutput + + None + Tablix1 + + NaN + 1 + + + NaN + 1 + + None + + External + + + 1 + + + + 0 + 1 + + + 0 + 1 + + Red + 1 + ThreeSymbolCross + + External + + + + + + 1 + 1 + + + 1 + 1 + + Green + 1 + ThreeSymbolCheck + + External + + + + + 0 + + ThreeCircledSymbols + + 4 + 4 + 92 + 92 + + + true + + + + Gainsboro + DiagonalLeft + Gray + None + 0pt + + + + + + External + + + + + External + + + Feature_Settings + + + White + + + + + + + + + + + =Sum(Fields!IsTcpEnabled.Value) + 1 + NoOutput + + None + Tablix1 + + NaN + 1 + + + NaN + 1 + + None + + External + + + 1 + + + + 0 + 1 + + + 0 + 1 + + Red + 1 + ThreeSymbolCross + + External + + + + + + 1 + 1 + + + 1 + 1 + + Green + 1 + ThreeSymbolCheck + + External + + + + + + -1 + 1 + NoOutput + + + -1 + 1 + NoOutput + + Orange + 1 + ThreeSymbolUnCircledExclamation + + External + + + + + 0 + + ThreeCircledSymbols + + 4 + 4 + 92 + 92 + + + true + + + + Gainsboro + DiagonalLeft + Gray + None + 0pt + + + + + + External + + + + + External + + + Feature_Settings + + + White + + + + + + + + + + + + + + + + + + + + + + + Feature_Settings + 0.84444in + 0.60833in + 4.25833in + 1 + + + + + + true + true + + + + + SQL Server R Services - Configuration + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + This report provides configuration settings for SQL Server R Services and properties of the R installation. Click the "Configure Instance" buton when visible to configure instance for external scripts execution & implied authentication. + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + View SQL script + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Configure Instance + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Restart of SQL Server instance is required for configuration changes to take effect. + + + + + + 2pt + 2pt + 2pt + 2pt + + + + 2.06666in + + + + + 8.66666in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 6.6375in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Executed script: + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =DataSets("Reconfigure").CommandText + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =First(Fields!message.Value, "Reconfigure") + + + + + + 2pt + 2pt + 2pt + 2pt + + + + 1.42167in + + + + + 9in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 7in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + =Sum(Fields!counter_value.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + 1.63334in + + + true + true + + + + + Counter Name + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + =Fields!counter_name.Value + + + + + =Fields!counter_name.Value + + + + 1.63334in + + + true + true + + + + + =Fields!counter_name.Value + + + + + + #9eb6e4 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + r_statistics + 1.08056in + 3.89166in + 0.5in + 2.63334in + + + + + + + + + 1in + + + + + 0.25in + + + + + true + true + + + + + Counter Value + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + =Sum(Fields!counter_value.Value) + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + 2.25in + + + true + true + + + + + Counter Name + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + =Fields!counter_name.Value + + + + + =Fields!counter_name.Value + + + + 2.25in + + + true + true + + + + + =Fields!counter_name.Value + + + + + + #9eb6e4 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + sp_execute_external_script_statistics + 1.08056in + 0.5in + 3.25in + 1 + + + + + + true + true + + + + + SQL Server R Services - Execution Statistics + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + This report provides the execution statistics of sp_execute_external_script system stored procedure and rx* functions in RevoScaleR package (Microsoft R Server). + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + View SQL script + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Statistics for sp_execute_external_script: + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Statistics for RevoScaleR package: + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + 1.61389in + + + + + 9in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 7in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + =Fields!description.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + 2.98333in + + + true + true + + + + + Event Name + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + After + + + + + =Fields!event_name.Value + + + + + =Fields!event_name.Value + + + + 2.98333in + + + true + true + + + + + =Fields!event_name.Value + + + + + + #9eb6e4 + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + r_extended_events + 1.09167in + 0.5in + 8.875in + + + + + + true + true + + + + + SQL Server R Services - Extended Events + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + This report lists the extended events available for SQL Server R Services.The events are grouped in the package "SQLSatellite". Typically, the events of interest are satellite_data_receive_completion, satellite_data_send_completion, satellite_schema_received, and satellite_schema_sent to determine the stage of execution for the R script / sp_execute_external_script call. + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + View SQL script + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + 1.59167in + + + + + 8.90833in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 6.875in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Version + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Depends + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + License + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Built + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Lib Path + + + + + + #4c68a2 + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.25in + + + + + true + true + + + + + =Fields!Package.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Version.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Depends.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!License.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Built.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!LibPath.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + true + true + true + true + R_Packages + + Between + + 1.15in + 0.5in + 10.40835in + + + + + + true + true + + + + + SQL Server R Services - Installed Packages + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + This report displays few properties of the packages installed in the R_SERVICES directory of the SQL Server instance. Use this report to determine if a particular package is installed for use in SQL Server and the location of the package on the file system. + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + View SQL script + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Total number of packages: + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Count(Fields!Package.Value, "R_Packages") + + + + + + + 0.855in + 1.77167in + 0.25in + 1in + 5 + + + 2pt + 2pt + 2pt + 2pt + + + + 1.68333in + + + + + 10.43335in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 8.40835in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in + + + #VALY + + + + + + + + + False + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + False + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + CPU Usage (Hours) + + + + BrightPastel + + #4c68a2 + #b5dddf + #7292cc + #89bcc5 + #c4d5f3 + #c6c595 + #87acf3 + #7b9291 + #a8c4ec + #a49ed4 + + + Emboss + + + + No Data Available + + + pool_statistics + 4.43055in + 2.93056in + 4.25in + + 2pt + + #c6daf8 + TopBottom + #e6eefc + + + + + + + + + =Fields!name.Value + + + + + =Fields!name.Value + + + + + + + + + + + + + + + + + + + + =Sum(Fields!max_memory_percent.Value) + + + + + #VALY + + + + + + + + + False + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + False + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + Max Memory Setting (%) + + + + BrightPastel + + #4c68a2 + #b5dddf + #7292cc + #89bcc5 + #c4d5f3 + #c6c595 + #87acf3 + #7b9291 + #a8c4ec + #a49ed4 + + + Emboss + + + + No Data Available + + + memory_limits + 1.31944in + 4.31944in + 3in + 4.9in + 1 + + 2pt + + #c6daf8 + TopBottom + #e6eefc + + + + + + + + + =Fields!pool_name.Value + + + + + =Fields!pool_name.Value + + + + + + + + + + + + + + + + + + + + + + + =Sum(Fields!read_io_completed_total.Value) + + + + + #VALY + + + + + #VALY + + + + + + + + + False + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + False + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + + + + + + Black + Black + + + + + IO Statistics (Count) + + + + BrightPastel + + #4c68a2 + #b5dddf + #7292cc + #89bcc5 + #c4d5f3 + #c6c595 + #87acf3 + #7b9291 + #a8c4ec + #a49ed4 + + + Emboss + + + + No Data Available + + + pool_statistics + 4.43055in + 4.31944in + 3in + 4.9in + 2 + + 2pt + + #c6daf8 + TopBottom + #e6eefc + + + + + + + + + + + + + + + + + + + + + + + + + + =Sum(Fields!physical_memory_kb.Value) + + + + true + + #VALY + + + + true + + #VALY + + + + + Axis Title + + + + False + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + False + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + Axis Title + + + + + + + + + + + + + + + + 0.5 + + NaN + NaN + NaN + + + + Axis Title + + + + + + + + + + + + + + + + 0.5 + + NaN + Opposite + NaN + NaN + + + + + + + + + + + + Black + Black + + + + + Current Memory Consumption + + + + BrightPastel + + #4c68a2 + #b5dddf + #7292cc + #89bcc5 + #c4d5f3 + #c6c595 + #87acf3 + #7b9291 + #a8c4ec + #a49ed4 + + + Emboss + + + + No Data Available + + + sql_memory_usage + 1.31944in + 3in + 4.25in + 3 + + 2pt + + #c6daf8 + TopBottom + #e6eefc + + + + true + true + + + + + SQL Server R Services - Resource Usage + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + 1.65833in + + + + + 0.25in + + + + + true + true + + + + + =Round(Sum(Fields!external_pool_peak_memory_kb.Value, "sql_memory_usage")/1024) & " MB" + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + sql_memory_usage + 1in + 2.43333in + 0.25in + 1.65833in + 5 + + + + + + true + true + + + + + R Scripts - Peak Memory Usage: + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + This report provides detailed data on the resource consumption of R Services with respect to SQL Server. Use this report to adjust external resource pool setting for R scripts. + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + View SQL script + + + LightGrey + Middle + 2pt + 2pt + 2pt + 2pt + + + + 7.55555in + + + + + 9.275in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 7.13333in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in + + + + + + LightGrey + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + This is the T-SQL script for generating the data in report: + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Parameters!SQLR_Script.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Parameters!SQLR_ReportName.Value + + + + + + + Textbox1 + 0.46944in + 3.56111in + 0.25in + 5.42222in + 3 + + + 2pt + 2pt + 2pt + 2pt + + + + 1.125in + + + + + 9.01667in + + + 0.45in + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 0.2in + 6.98333in + 0.25in + 2in + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 1in + 1in + 1in + 1in +