How to get the sql print message using pymssql
问题 I'm running some queries, that print runtime stats from their execution. It's done through print('message') used within the sql script. I would want to see these messages while calling the procedures/scripts through pymssql. conn = pymssql.connect(server, user, password, "tempdb") cursor = conn.cursor() cursor.execute("print('message')") conn.commit() Above script doesn't return anything, and I can't find any tips on how to get that print to show up in the console output. 回答1: Found a