You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this folder, you will find the required files to execute the [Iron Ore Silica Impurities Demo](https://docs.microsoft.com/en-us/azure/azure-sql-edge/tutorial-deploy-azure-resources)
4
-
1. DACPAC or Data Tier AppliCation Package is a single file which contains database model i.e. all files represent database objects. This file can be downloaded [here](https://github.com/microsoft/sql-server-samples/tree/master/samples/demos/azure-sql-edge-demos/iron-ore-silica-impurities/DACPAC).
5
-
2. The ARM/AMD docker image files that need to be pushed to the conatiner registry can be downloaded [here](https://github.com/microsoft/sql-server-samples/tree/master/samples/demos/azure-sql-edge-demos/iron-ore-silica-impurities/tar-files).
3
+
In this folder, you will find the required files to execute
4
+
5
+
1. The [Iron Ore Silica Impurities Demo](https://docs.microsoft.com/en-us/azure/azure-sql-edge/tutorial-deploy-azure-resources)
6
+
* DACPAC or Data Tier AppliCation Package is a single file which contains database model i.e. all files represent database objects. This file can be downloaded [here](https://github.com/microsoft/sql-server-samples/tree/master/samples/demos/azure-sql-edge-demos/iron-ore-silica-impurities/DACPAC).
7
+
* The ARM/AMD docker image files that need to be pushed to the conatiner registry can be downloaded [here](https://github.com/microsoft/sql-server-samples/tree/master/samples/demos/azure-sql-edge-demos/iron-ore-silica-impurities/tar-files).
8
+
9
+
10
+
2. The [wind turbine demo](samples/demos/azure-sql-edge-demos/Wind_Turbine_Demo.zip) can be downloaded and run on your local machines
"CREATE LOGIN connector_user WITH PASSWORD ='password123!#' \n",
62
-
"CREATE USER connector_user FROM LOGIN connector_user\n",
63
-
"\n",
64
-
"-- to view data pool node configuration\n",
65
-
"grant VIEW DATABASE STATE to connector_user\n",
66
-
"\n",
67
-
"-- To create external tables in data pools\n",
68
-
"grant alter any external data source to connector_user;\n",
69
-
"\n",
70
-
"-- To create external table\n",
71
-
"grant create table to connector_user;\n",
72
-
"grant alter any schema to connector_user;\n",
73
-
"\n",
74
-
"\n",
75
-
"\n",
76
-
"ALTER ROLE [db_datareader] ADD MEMBER connector_user\n",
77
-
"ALTER ROLE [db_datawriter] ADD MEMBER connector_user"
78
+
"Use connector_test_db;\r\n",
79
+
"\r\n",
80
+
"-- Create a database user\r\n",
81
+
"CREATE USER connector_user FROM LOGIN connector_user\r\n",
82
+
"\r\n",
83
+
"-- To view data pool node configuration\r\n",
84
+
"grant VIEW DATABASE STATE to connector_user;\r\n",
85
+
"\r\n",
86
+
"-- To create external tables in data pools\r\n",
87
+
"grant alter any external data source to connector_user;\r\n",
88
+
"\r\n",
89
+
"-- To create external table\r\n",
90
+
"grant create table to connector_user;\r\n",
91
+
"grant alter any schema to connector_user;\r\n",
92
+
"\r\n",
93
+
"ALTER ROLE [db_datareader] ADD MEMBER connector_user;\r\n",
94
+
"ALTER ROLE [db_datawriter] ADD MEMBER connector_user;\r\n",
95
+
"\r\n",
96
+
"-- Create external table in data pool\r\n",
97
+
"CREATE EXTERNAL DATA SOURCE connector_ds WITH (LOCATION = 'sqldatapool://controller-svc/default');\r\n",
98
+
"EXECUTE('USE connector_test_db; CREATE EXTERNAL TABLE [dummy3] ([number] int, [word] nvarchar(2048)) WITH (DATA_SOURCE = connector_ds, DISTRIBUTION = ROUND_ROBIN)')\r\n",
99
+
"\r\n",
100
+
"-- Create a login in data pools and Provide right permissions to this user\r\n",
101
+
"EXECUTE( ' Use connector_test_db; CREATE LOGIN connector_user WITH PASSWORD = ''password123!#'' ; ' ) AT DATA_SOURCE connector_ds;\r\n",
102
+
"EXECUTE( ' Use connector_test_db; CREATE USER connector_user ; ALTER ROLE [db_datareader] ADD MEMBER connector_user; ALTER ROLE [db_datawriter] ADD MEMBER connector_user ;') AT DATA_SOURCE connector_ds;"
"GRANT VIEW DATABASE STATE to [AZDATA\\testusera1];\r\n",
180
+
"\r\n",
181
+
"-- To create external tables in data pools\r\n",
182
+
"grant alter any external data source to [AZDATA\\testusera1];\r\n",
183
+
"\r\n",
184
+
"-- To create external table\r\n",
185
+
"grant create table to [AZDATA\\testusera1];\r\n",
186
+
"grant alter any schema to [AZDATA\\testusera1];\r\n",
187
+
"\r\n",
188
+
"ALTER ROLE [db_datareader] ADD MEMBER [AZDATA\\testusera1];\r\n",
189
+
"ALTER ROLE [db_datawriter] ADD MEMBER [AZDATA\\testusera1];\r\n",
190
+
"\r\n",
191
+
"-- Create external table in data pool\r\n",
192
+
"CREATE EXTERNAL DATA SOURCE connector_ds WITH (LOCATION = 'sqldatapool://controller-svc/default');\r\n",
193
+
"EXECUTE('USE spark_mssql_db; CREATE EXTERNAL TABLE [dummy3] ([number] int, [word] nvarchar(2048)) WITH (DATA_SOURCE = connector_ds, DISTRIBUTION = ROUND_ROBIN)')\r\n",
194
+
"\r\n",
134
195
"-- Create a login in data pools and Provide right permissions to this user\r\n",
135
-
"EXECUTE( ' Use connector_test_db; CREATE LOGIN connector_user WITH PASSWORD = ''password123!#'' ; ' ) AT DATA_SOURCE connector_ds;\r\n",
136
-
"EXECUTE( ' Use connector_test_db; CREATE USER connector_user ; ALTER ROLE [db_datareader] ADD MEMBER connector_user; ALTER ROLE [db_datawriter] ADD MEMBER connector_user ;') AT DATA_SOURCE connector_ds;"
196
+
"EXECUTE( ' USE spark_mssql_db; CREATE LOGIN [AZDATA\\testusera1] FROM WINDOWS ' ) AT DATA_SOURCE connector_ds;\r\n",
197
+
"\r\n",
198
+
"EXECUTE( ' USE spark_mssql_db; CREATE USER [AZDATA\\testusera1] ; ALTER ROLE [db_datareader] ADD MEMBER [AZDATA\\testusera1]; ALTER ROLE [db_datawriter] ADD MEMBER [AZDATA\\testusera1] ;') AT DATA_SOURCE connector_ds;"
Copy file name to clipboardExpand all lines: samples/manage/sql-assessment-api/notebooks/SQLAssessmentAPIQuickStartNotebook.ipynb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -103,9 +103,9 @@
103
103
"source": [
104
104
"### Learn more about SQL Assessment API\r\n",
105
105
"To learn more about SQL Assesment API such as customizing and extending the rule set, saving the results in a table, etc., please visit:\r\n",
106
+
"- Continue learning more about SQL Assessments with the ➡ [SQL Assessment API Tutorial notebook](https://github.com/microsoft/sql-server-samples/blob/master/samples/manage/sql-assessment-api/notebooks/SQLAssessmentAPITutorialNotebook.ipynb)\r\n",
Copy file name to clipboardExpand all lines: samples/manage/sql-assessment-api/notebooks/SQLAssessmentAPITutorialNotebook.ipynb
+46-1Lines changed: 46 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -331,6 +331,51 @@
331
331
"outputs": [],
332
332
"execution_count": 38
333
333
},
334
+
{
335
+
"cell_type": "markdown",
336
+
"source": [
337
+
"### 7. Scaling up your Checks\r\n",
338
+
"Running checks across multiple machines and writng their results back to the same table in SQL Server. You can keep you list of SQL Servers to check anywhere you want, in a text file, in an Excel spreadsheet, in a table you maintain yourself, the options are endless.\r\n",
339
+
"\r\n",
340
+
"Two options are shown below show features availabile that can be managed from SSMS or Azure Data Studio, and can accessed via the `SQLSERVER:\\` Provider, which is part of the `SqlServer` module.\r\n",
341
+
"\r\n",
342
+
"1. Registered Servers is feature of SSMS and stores a list of SQL Server instances in a local XML file.\r\n",
343
+
"2. Central Management Server relise on a SQL Server to maintain the list of SQL Server instances (instead of a _local XML file_) and is available in both SSMS & Azure Data Studio."
0 commit comments