in reply to MS SQL Stored Procedure Syntax

Assuming that 'sp_spaceused' is a scalar that contains the entire statement try:

$sth=$dbh->prepare("$sp_spaceused");

mr greywolf