Resolve problem to create view in bad database.