1. Query SQL Server DB from Spark notebook in Azure Synapse Analytics | pyodbc to query SQL server
20.2 هزار بار بازدید -
2 سال پیش
-
In this video, I discussed
In this video, I discussed about querying SQL DB from Synapse spark notebook in Azure Synapse Analytics. We used pyodbc library to do the same.
pyodbc documentation links:
https://github.com/mkleehammer/pyodbc...
https://docs.microsoft.com/en-us/sql/...
sample code used:
import pyodbc
server = 'yourDbServerName'
database = 'yourDBName'
username = 'UserName'
password = 'Password'
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=' + server + ';DATABASE='+ database +';UID=' + username + ';PWD='+ password)
Link for Azure Synapse Analytics Playlist:
1. Introduction to Azure Synapse Anal...
Link for Azure Data bricks Play list:
1. Introduction to Azure Databricks
Link for Azure Functions Play list:
1. Introduction to Azure Functions
Link for Azure Basics Play list:
1. What is Azure and Cloud
Link for Azure Data factory Play list:
1. Introduction to Azure Data Factory
Link for Azure Data Factory Real time Scenarios
1. Handle Error Rows in Data Factory ...
Link for Azure Logic Apps playlist
1. Introduction to Azure Logic Apps
#Azure #AzureSynapse #AzureSynapseAnalytics #wafastudies
pyodbc documentation links:
https://github.com/mkleehammer/pyodbc...
https://docs.microsoft.com/en-us/sql/...
sample code used:
import pyodbc
server = 'yourDbServerName'
database = 'yourDBName'
username = 'UserName'
password = 'Password'
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=' + server + ';DATABASE='+ database +';UID=' + username + ';PWD='+ password)
Link for Azure Synapse Analytics Playlist:
1. Introduction to Azure Synapse Anal...
Link for Azure Data bricks Play list:
1. Introduction to Azure Databricks
Link for Azure Functions Play list:
1. Introduction to Azure Functions
Link for Azure Basics Play list:
1. What is Azure and Cloud
Link for Azure Data factory Play list:
1. Introduction to Azure Data Factory
Link for Azure Data Factory Real time Scenarios
1. Handle Error Rows in Data Factory ...
Link for Azure Logic Apps playlist
1. Introduction to Azure Logic Apps
#Azure #AzureSynapse #AzureSynapseAnalytics #wafastudies
2 سال پیش
در تاریخ 1401/06/02 منتشر شده
است.
20,247
بـار بازدید شده