finish functions. starting with advanced topics csv imports

This commit is contained in:
Bartal Læarsson
2026-02-17 10:36:18 +00:00
parent 70ecfec850
commit 0fcf023080
7 changed files with 233 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
import pyodbc
try:
connection = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=.;DATABASE=SampleDB;Trusted_Connection=yes')
cursor = connection.cursor()
cursor.close()
connection.close()
except pyodbc.Error as ex:
print()
print("exception: ",ex)
cursor.close()
connection.close()
print()
exit()
print()