• why not use sp_msforeachtable . Search this site for more info.

    "Keep Trying"