Re: Dependencies are lost when alter an object

From: Aaron Bertrand [MVP] (aaron_at_TRASHaspfaq.com)
Date: 03/24/04


Date: Wed, 24 Mar 2004 16:52:24 -0500

DROP and CREATE, instead of ALTER?

-- 
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Catalin" <anonymous@discussions.microsoft.com> wrote in message 
news:2042C4B2-3C76-4A4A-B03D-DCE6FDE78CD6@microsoft.com...
> Hello,
> I have an old problem but now it became ugly...
> I have an object (for example a function) that is used in some views. If I 
> am looking on dependencies, it shows me the 8 views whcih depends on it. 
> But if I edit the function in Query Analyser and run the script (no 
> modification on the script), it deletes all the dependencies for the 8 
> views on it... The problem is worst because when I generate the initial 
> snapshot for a merge replication, it will affect the generation order of 
> the scripts and I get error when trying to create the views (on 
> subscriber), saying that the function doesn't exist in database...
> Any ideea how can I preserve the dependencies?
> Thanks in advance
> 


Relevant Pages

  • Re: kms in defconfig
    ... Linus Torvalds wrote: ... i could imagine a kconfig knob to specify an optional ... suplies and maintains his script ... the dependencies before to enable/disable drivers), ...
    (Linux-Kernel)
  • Re: many packages not available
    ... Actually I am thinking of doing that as a shell script. ... of the packages on some mirror that contains dependency information. ... One of the problems is dependencies having ...
    (comp.unix.bsd.freebsd.misc)
  • Re: How to send email with perl, or at least control Outlook Express
    ... Michael Goerz wrote, on 03/11/2008 06:23 PM: ... You can try to comment out some of the dependencies. ... I don't think I ever tested the script on Windows. ...
    (comp.lang.perl.misc)
  • Re: How to send email with perl, or at least control Outlook Express
    ... user/pass authentication.. ... You can try to comment out some of the dependencies. ... I don't think I ever tested the script on Windows. ...
    (comp.lang.perl.misc)
  • Re: ANSI Standards
    ... Tibor Karaszi, SQL Server MVP ... Most good judgment comes from experience. ... can script out the entire database and all object into one ... the set fips option and then just parse the entire script. ...
    (microsoft.public.sqlserver.tools)