This example runs on Sql Server 2005:
exec sp_MSforeachtable @command1=' print ''?''', @whereand=' and schema_name(schema_id) = ''dbo'' '
Not quite sure about Sql Server 2000, but this version may work:
exec sp_MSforeachtable @command1=' print ''?''', @whereand=' and user_name(uid) = ''dbo'' '
Michael ferrante
source share