This is query:
CREATE TABLE #TempTable(datasize varchar(200))
INSERT #TempTable
EXEC sp_spaceused 'Table1'
When executing this query error message shown as below
Column name or number of supplied
values does not match table definition
How can I solve this problem?
There’s a definition mismatch between that temp table and the default output of
sp_spaceused.Use: