I too have the same problem. I tried to create Database script by using command line SQLPubWiz.exe . Scripting process is successful, but script for Views is generated first and then for Tables, which is wrong as tables needs to be created first and then views coz views refers to those tables.
any help please..