I meant to set @cmdstr to a string of switches in the code snippet above.
I guess the question is really whether sqlmaint runs in a 64 bit environment, especially when called using T-SQL in a proc?
If you've had any experience, I'd like to hear it.
Thanks,
Elliott