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
@@ -5,8 +5,26 @@ try:
cursor = connection.cursor()
sql_cmd = """
declare @out nvarchar(max)
exec dbo.usp_cus_details @cus_id = ?, @out = @out output;
"""
prm_id=3
cursor.execute(sql_cmd, prm_id)
print("[printing sp call]")
rows = cursor.fetchall()
while rows:
print(rows)
if cursor.nextset():
rows = cursor.fetchall()
else:
rows = None
print()
cursor.close()
connection.close()