I want Generate script of all views and functions in my database, but when i execute this script i find a problem of ("object xxx doesn't exist") because i have many views select data from other views, so they should be created before the first ones.
So i want a way to generate the script in order or other solution
I use SQL Server 2000.