Skip to content

Commit 175a83f

Browse files
authored
Updated the Generate_iris_model
The procedure code had syntax errors.
1 parent 73043fe commit 175a83f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/advanced-analytics/r/using-r-in-azure-sql-database.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ GO
102102
The following stored procedure does the work of actually creating and training the model, which can be saved in either of two binary formats.
103103

104104
```sql
105-
CREATE PROCEDURE generate_iris_model (@trained_model VARBINARY(MAX) OUTPUT, @native_trained_model VARBINARY(MAX) OUTPUT
105+
CREATE PROCEDURE generate_iris_model @trained_model VARBINARY(MAX) OUTPUT, @native_trained_model VARBINARY(MAX) OUTPUT
106106
AS
107107
BEGIN
108108
EXEC sp_execute_external_script @language = N'R'
@@ -115,6 +115,7 @@ BEGIN
115115
, @input_data_1_name = N'iris_rx_data'
116116
, @params = N'@trained_model VARBINARY(MAX) OUTPUT, @native_trained_model VARBINARY(MAX) OUTPUT'
117117
, @trained_model = @trained_model OUTPUT
118+
End
118119
```
119120

120121
+ The **OUTPUT** keyword on the input parameters indicates that the values should be passed through and used for output as well.

0 commit comments

Comments
 (0)