Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 views scripting problem

Author  Topic 

hadoft
Starting Member

20 Posts

Posted - 2003-10-27 : 02:55:42
I had generated a script for my views through EM

But when I had executed this script in QA, multiple errors issued

Then I found out that the order of the views in the script doesn’t conceder its dependency

So I had to reorder the views script to make it run

Why that happened?
Is there any way to avoid it?

Thanks.

robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-10-27 : 07:54:46
There is a checkbox in EM to "script dependent objects" which will put them in the proper order.
Go to Top of Page

hadoft
Starting Member

20 Posts

Posted - 2003-10-27 : 08:31:10
quote:
Originally posted by robvolk

There is a checkbox in EM to "script dependent objects" which will put them in the proper order.



thanks for the replay

I had tried this option but it didn't solve the problem

it seems like - but not very sure- that the last view I made a modification to it will be scripted at the end
Without considering any dependencies

The problem is that all views are scripted but not in the right order

Any help please?
Go to Top of Page

hadoft
Starting Member

20 Posts

Posted - 2003-10-27 : 09:38:48
I had found a clue

When I opened the dependencies node of the view in QA
It doesn’t list all views that this view depends on it
Why may that happen?

But when I make a dummy update to this odd view then it will list its parent views (dependencies) correctly
Any one can help?

Because I have a lot of views and checking every one and making dummy update will take a long time

The main question, why the view doesn’t see its dependencies correctly in the first place.
Go to Top of Page

MakeYourDaddyProud

184 Posts

Posted - 2003-10-27 : 09:41:04
Oh, I thought dependant objects were created anyhow and a warning from sysdepends...

Daniel Small MIAP
www.danielsmall.com IT Factoring
Go to Top of Page
   

- Advertisement -