SQL server has the prompt: sp_help table_name.
I would like to access the output of this using django.
I am using django 2.1. I expected the following code to work, but it only returns the first part of what SQL server returns.
cursor = connection.cursor()
cursor.execute("sp_help testTable")
print(cursor.fetchall())
I expected the output to be:
[('testTable', 'dbo', 'user table', datetime.datetime(2019, 10, 14, 16, 0, 46, 700000))]
[('testCol', 'varchar', 'no', '50', '', '', 'no', 'no', 'no', 'SQL_Latin1_General_CP1_CI_AS')]
[...more result sets...]
Instead I got:
[('testTable', 'dbo', 'user table', datetime.datetime(2019, 10, 14, 16, 0, 46, 700000))]