From 334f1fd75691c35f09f7239646420d9f0b8ab923 Mon Sep 17 00:00:00 2001 From: Yassine Date: Wed, 24 May 2017 07:29:06 +0200 Subject: [PATCH] initial commit of setup.sql --- .../bike-sharing prediction/setup.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 samples/features/machine-learning-services/python/getting-started/bike-sharing prediction/setup.sql diff --git a/samples/features/machine-learning-services/python/getting-started/bike-sharing prediction/setup.sql b/samples/features/machine-learning-services/python/getting-started/bike-sharing prediction/setup.sql new file mode 100644 index 00000000..e28c4968 --- /dev/null +++ b/samples/features/machine-learning-services/python/getting-started/bike-sharing prediction/setup.sql @@ -0,0 +1,15 @@ +-- Before we start, we need to restore the database +-- Step1: Download the compressed backup file (url) +--Save the file on a location where SQL Server can access it. For example: C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\Backup\ + +-- In a new query window in SSMS, execute the following restore statement, but REMEMBER TO CHANGE THE FILE PATHS +-- to match the directories of your installation! + +USE master; +GO +RESTORE DATABASE velibDB + FROM DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\Backup\velibDB.bak' + WITH + MOVE 'velibDB' TO 'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\velibDB.mdf' + ,MOVE 'velibDB_log' TO 'C:\Program Files\Microsoft SQL Server\MSSQL14.MSSQLSERVER\MSSQL\DATA\velibDB.ldf'; +GO \ No newline at end of file