jupyter notebook extract data from sql server python data science
Source code:
!conda install -y -q pymssql
import pymssql
con = pymssql.connect(server='LAPTOP-CJ5ACQN6\SQLEXPRESS',user='gasUser',password='gasUser',database='AdventureWorksDW2017')
cursor = con.cursor()
query = "SELECT * FROM DimCustomer"
cursor.execute(query)
data = cursor.fetchall()
for item in data:
print(item)
con.close()
Would you like to support this channel? buy me a coffee :-) https://www.buymeacoffee.com/elearningnica
if you get the following error: "20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist", then you have to make sure the tcp/ip protocol of your sql server instance is enabled, check the video for more details.
Github: https://github.com/elearningnica
Twitter: https://twitter.com/elearningnica
Facebook: http://facebook.com/elearningnica
Instagram: https://www.instagram.com/_elearningnica/
Telegram: https://t.me/elearningnica
YouTube: https://www.youtube.com/c/ElearningnicaBlogspot
Видео jupyter notebook extract data from sql server python data science канала elearningNica
!conda install -y -q pymssql
import pymssql
con = pymssql.connect(server='LAPTOP-CJ5ACQN6\SQLEXPRESS',user='gasUser',password='gasUser',database='AdventureWorksDW2017')
cursor = con.cursor()
query = "SELECT * FROM DimCustomer"
cursor.execute(query)
data = cursor.fetchall()
for item in data:
print(item)
con.close()
Would you like to support this channel? buy me a coffee :-) https://www.buymeacoffee.com/elearningnica
if you get the following error: "20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist", then you have to make sure the tcp/ip protocol of your sql server instance is enabled, check the video for more details.
Github: https://github.com/elearningnica
Twitter: https://twitter.com/elearningnica
Facebook: http://facebook.com/elearningnica
Instagram: https://www.instagram.com/_elearningnica/
Telegram: https://t.me/elearningnica
YouTube: https://www.youtube.com/c/ElearningnicaBlogspot
Видео jupyter notebook extract data from sql server python data science канала elearningNica
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![FizzBuzz in C# #shorts](https://i.ytimg.com/vi/f3FE2E8KDI4/default.jpg)
![Sistemas Numéricos](https://i.ytimg.com/vi/W0CTal8-wv4/default.jpg)
![Tipos de Sistemas de Información Computarizados](https://i.ytimg.com/vi/e_a79KA_6yo/default.jpg)
![circular sector perimeter python visual studio code](https://i.ytimg.com/vi/nmSmi0au6g4/default.jpg)
![how to create an android virtual device in android studio](https://i.ytimg.com/vi/LPygTQmQTzY/default.jpg)
![funciones de agregado transact sql - sql server](https://i.ytimg.com/vi/9-71r5Q5NZs/default.jpg)
![Angular - ng style with a conditional expression](https://i.ytimg.com/vi/5PPWqjt-71k/default.jpg)
![basic operations on Jupyter notebook python data science](https://i.ytimg.com/vi/0iy4xeIzkP4/default.jpg)
![how to use the accordion in primereact](https://i.ytimg.com/vi/PqtGVGa34LI/default.jpg)
![jQuery Datatable with MVC 5 and Entity Framework on visual studio 2019](https://i.ytimg.com/vi/uus0kdAVxcc/default.jpg)
![select component ant ui react](https://i.ytimg.com/vi/UkZPJLwhKUE/default.jpg)
![How do you show data in FlatList in react native](https://i.ytimg.com/vi/6XvetO48IGM/default.jpg)
![Presentacion de Power Point 2016](https://i.ytimg.com/vi/ktmuK3Hn6h0/default.jpg)
![Validaciones de Datos en Microsoft Excel 2016](https://i.ytimg.com/vi/AzDzd8F9GwA/default.jpg)
![editar una tabla e ingresar datos en Microsoft Access 2016](https://i.ytimg.com/vi/lXRVRv1tqpc/default.jpg)
![loops in kotlin](https://i.ytimg.com/vi/QI4xOrmdQns/default.jpg)
![operaciones con celdas en excel](https://i.ytimg.com/vi/2BjzzO6GmSk/default.jpg)
![create new component in angular 11](https://i.ytimg.com/vi/Ak0jEfblO8k/default.jpg)
![Mostrar datos de modelo en mvc C#](https://i.ytimg.com/vi/cOg-kmhj0NE/default.jpg)
![populate devexpress gridcontrol winforms C# from a json using async await on visual studio 2019](https://i.ytimg.com/vi/NaWygDVOlfo/default.jpg)