If I use SQL Management Studio. When I create/drop tables, or do any updates, I can see messages like:
"Command(s) completed successfully."
"Cannot drop the table 'my_table', because it does not exist or you do not have permission."
But if I use python to execute the same query:
connection = pypyodbc.connect('my connect options...')
cursor = connection.cursor()
my_result = cursor.execute('my create/drop table sql...')
my_result = connection.commit()
I can see nothing from "my_result", "cursor" or "connection". Is the message generated by sql management studio? If not, and it is a sql server engine returned message, how to get this message?