Hola que tal en este video les muestro como hacer la conexion de sql server a python de una manera muy facil y entendible... Espero les haya sido de gran ayuda
import pyodbc
try:
conexion = pyodbc.connect('Driver={ODBC Driver 17 for SQL Server};'
'Server=AICRAG23;'
'Database=LICORERIA;'
'Trusted_Connection=yes;')
print "Conexion Correcta"
OK! conexion exitosa
except Exception as e:
Atrapar error
print("Ocurrio un error al conectar a SQL Server: ", e)
On this page of the site you can watch the video online Conectar Base de datos a Python |SQL SERVER| #1 Conexion Base Datos with a duration of hours minute second in good quality, which was uploaded by the user Aicrag 17 June 2021, share the link with friends and acquaintances, this video has already been watched 666 times on youtube and it was liked by 10 viewers. Enjoy your viewing!