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
"source": "# Stream to datapool using the MSSQL Spark Connector\r\nMSSQL Spark connector provides an efficient write to SQLServer master instance and SQL Server data pool in Big Data Clusters. This sample shows how to use the connector to stream a file to an external table in data pools.\r\n\r\n The sample is divided into 2 parts. \r\n- In Part 1, we stream all files under a given directory to a external table in data pools\r\n- In Part 2, we read the table to see the data. \r\n\r\nPreReq: \r\n- The sample uses a SQL database named \"MyTestDatabase\". Create this before you run this sample. The database can be created as follows\r\n ``` sql\r\n Create DATABASE MyTestDatabase\r\n GO \r\n ``` \r\n- Download [AdultCensusIncome.csv]( https://amldockerdatasets.azureedge.net/AdultCensusIncome.csv ) to your local machine. Create a hdfs folder named /filestreaming and upload the files there. \r\n",
20
+
"metadata": {}
21
+
},
22
+
{
23
+
"cell_type": "markdown",
24
+
"source": "## Part 1 - Stream all files under a given directory to an external table in data pools\r\n",
25
+
"metadata": {}
26
+
},
27
+
{
28
+
"cell_type": "markdown",
29
+
"source": "### Configure the user, password, database, sourceDir, datapool_tables,schema, datasource_name per your needs\r\n\r\n\r\n",
"source": "## Part2 - Read the external table using MSSQLSpark Connector \r\nNow you are streaming data from the source directory to the data pool table. An external table has been created in the targeted database specified above. You can view the table in the explorer tree and query it using t-sql. \r\n\r\nIf you want to view the current count of records in the external table use the code below. The stream with append new data to the external table as well. Try creating another census csv file with 100 rows and add it to the source directory.",
0 commit comments