Hi Joe,
You're welcome. BTW, you wouldn't have to trim variables if you DECLARE them varchar instead of char.
>All I had to do was trim up the vars and viola!
Thanks!
>>Hi Joe,
>>You've to build SQL string and than execute it with EXECUTE command or
>> sp_execute sql system stored procedure.
>... snip ...
>
>Thanks again,
--sb--