Skip to content

Commit d39b4f2

Browse files
Fixing issue #4
1 parent 3ba88f1 commit d39b4f2

3 files changed

Lines changed: 29 additions & 8 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
-- Thus script enables mixed authentication on SQL Server, creates a user 'rdemo' with password 'D@tascience2016' and gives them the orrec permissions
2+
3+
-- Pre-requisites:
4+
-- 1) You should connect to the database in the SQL Server of the DSVM with:
5+
-- Server Name: localhost
6+
-- Integrated authentication is used
7+
8+
DECLARE @User varchar;
9+
DECLARE @Password varchar;
10+
11+
-- Set default username and password. Change these values to use different username and password
12+
SET @User = "rdemo"
13+
SET @Password = "D@atascience2016"
14+
15+
EXEC xp_instance_regwrite N'HKEY_LOCAL_MACHINE', N'Software\Microsoft\MSSQLServer\MSSQLServer', N'LoginMode', REG_DWORD, 2
16+
CREATE LOGIN @User WITH PASSWORD=@Password, DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
17+
ALTER SERVER ROLE [sysadmin] ADD MEMBER @User
18+
EXEC sp_configure 'external scripts enabled', 1
19+
RECONFIGURE WITH OVERRIDE
20+
21+
GO

SQLPy/ReadmeSQLPy.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
### Introduction
1212
-------------------------
1313

14-
When a customer sends a support tiket, it is important to route it to the right team in order to examine the issue and solve it in the fastest way possible. This notebook uses a preprocessed version of the NewsGroups20, containing a Subject, a Text, and a Label (20 classes). It has a similar structure to a support tiket data set which would also haver two data fields: Title, and Problem description.
14+
When a customer sends a support ticket, it is important to route it to the right team in order to examine the issue and solve it in the fastest way possible. This notebook uses a preprocessed version of the NewsGroups20, containing a Subject, a Text, and a Label (20 classes). It has a similar structure to a support ticket data set which would also haver two data fields: Title, and Problem description.
1515

1616
For businesses that prefers an on-prem solution, the implementation with SQL Server R Services is a great option, which takes advantage of the power of SQL Server and RevoScaleR (Microsoft R Server). In this template, we implemented all steps in SQL stored procedures: data preprocessing, and feature engineering are implemented in pure SQL, while models training, scoring and evaluation steps are implemented with SQL stored procedures with embedded R (Microsoft R Server) code.
1717

@@ -22,9 +22,9 @@ All the steps can be executed on SQL Server client environment (such as SQL Serv
2222

2323
To run the scripts, it requires the following:
2424
* SQL server 2017 with RevoscalePy (version 9.2) and MicrosoftML (version 1.5.0) installed and configured;
25-
* The SQL user name and password, and the user is configured properly to execute Python scripts in-memory;
26-
* SQL Database for which the user has write permission and can execute stored procedures (see create_user.sql);
27-
* Implied authentification is enabled so a connection string can be automatically created in R codes embedded into SQL Stored Procedures (see create_user.sql).
25+
* The SQL user name and password, and the user is configured properly to execute Python scripts in-memory (see [create_user.sql](..\Resources\ActionScripts\create_user.sql)).
26+
* SQL Database for which the user has write permission and can execute stored procedures (see [create_user.sql](..\Resources\ActionScripts\create_user.sql)).
27+
* Implied authentication is enabled so a connection string can be automatically created in R codes embedded into SQL Stored Procedures.
2828
* For more information about SQL server 2016 and R service, please visit: https://msdn.microsoft.com/en-us/library/mt604847.aspx
2929

3030

SQLR/ReadmeSQLR.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
### Introduction
1212
-------------------------
1313

14-
When a customer sends a support tiket, it is important to route it to the right team in order to examine the issue and solve it in the fastest way possible. This notebook uses a preprocessed version of the NewsGroups20, containing a Subject, a Text, and a Label (20 classes). It has a similar structure to a support tiket data set which would also haver two data fields: Title, and Problem description.
14+
When a customer sends a support ticket, it is important to route it to the right team in order to examine the issue and solve it in the fastest way possible. This notebook uses a preprocessed version of the NewsGroups20, containing a Subject, a Text, and a Label (20 classes). It has a similar structure to a support ticket data set which would also haver two data fields: Title, and Problem description.
1515

1616
For businesses that prefers an on-prem solution, the implementation with SQL Server R Services is a great option, which takes advantage of the power of SQL Server and RevoScaleR (Microsoft R Server). In this template, we implemented all steps in SQL stored procedures: data preprocessing, and feature engineering are implemented in pure SQL, while models training, scoring and evaluation steps are implemented with SQL stored procedures with embedded R (Microsoft R Server) code.
1717

@@ -22,9 +22,9 @@ All the steps can be executed on SQL Server client environment (such as SQL Serv
2222

2323
To run the scripts, it requires the following:
2424
* SQL server 2017 with RevoscaleR (version 9.2) and MicrosoftML (version 1.4.0) installed and configured;
25-
* The SQL user name and password, and the user is configured properly to execute R scripts in-memory;
26-
* SQL Database for which the user has write permission and can execute stored procedures (see create_user.sql);
27-
* Implied authentification is enabled so a connection string can be automatically created in R codes embedded into SQL Stored Procedures (see create_user.sql).
25+
* The SQL user name and password, and the user is configured properly to execute R scripts in-memory (see [create_user.sql](..\Resources\ActionScripts\create_user.sql)).
26+
* SQL Database for which the user has write permission and can execute stored procedures (see [create_user.sql](..\Resources\ActionScripts\create_user.sql)).
27+
* Implied authentication is enabled so a connection string can be automatically created in R codes embedded into SQL Stored Procedures.
2828
* For more information about SQL server 2016 and R service, please visit: https://msdn.microsoft.com/en-us/library/mt604847.aspx
2929

3030

0 commit comments

Comments
 (0)