finish functions. starting with advanced topics csv imports
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user