Hi Olaf,
Thanks for your response and help.
I've tried something like this, but it does not working.
declare @tablespace table (TableName sysname, RowsK varchar(32), ReservedMB varchar(32), DataMB varchar(32), IndexSizeMB varchar(32), UnusedMB varchar(32))
insert into @tablespace
exec...