DB: SQL Server 2000
The results from sp_spaceused has extra spaces in the database_name column. For example:
database_name
-----------------------------------------------------------------
Northwind
I want to resize the column.
...............................
If I was doing a regular query, I could do:
select substring(database_name, 1, 15) as 'database_name', database_size, unallocated space, reserved, Data, index_size, unused
from <table>
and the 'substring' part would resize the database_name column to the size I want.
..................................
However, I'm using a stored procedure....and I can't get the substring to work.
-Bill
13 days until my MS SQL Programming class starts!
The results from sp_spaceused has extra spaces in the database_name column. For example:
database_name
-----------------------------------------------------------------
Northwind
I want to resize the column.
...............................
If I was doing a regular query, I could do:
select substring(database_name, 1, 15) as 'database_name', database_size, unallocated space, reserved, Data, index_size, unused
from <table>
and the 'substring' part would resize the database_name column to the size I want.
..................................
However, I'm using a stored procedure....and I can't get the substring to work.
-Bill
13 days until my MS SQL Programming class starts!