Re: Problem with user defined funtions

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,
thank you very much for your fast response. It helps me.

Best regards

Axel Lanser

"Mark" wrote:

> ALN:
>
> You need to write you own SQL File where you set your custom ALTER TABLE
> commands for disabling constraints. While setting up publication you can
> specify which SQL file needs to be run before snapshot is applied. Check BOL
> for @pre_snapshot_script parameter in sp_addpublication procedure.
>
>
>
> "ALN" wrote:
>
> > Hi,
> > how can I create pre- and post-snapshots ?
> >
> > Best regards
> >
> > Axel Lanser
> >
> > "Hilary Cotter" wrote:
> >
> > > replication uses sysdepends to figure out the ordering of articles.
> > > Sometimes this table can be out of sync (read erroneous).
> > >
> > > I tend to deploy my problematic schema using a pre-snapshot command where
> > > all constraints are disabled. Then I set all articles up so that they use
> > > the delete data in existing table in the name conflicts section. I then use
> > > a post-snapshot command to enable the constraints.
> > >
> > > --
> > > Hilary Cotter
> > > Looking for a SQL Server replication book?
> > > http://www.nwsu.com/0974973602.html
> > >
> > > Looking for a FAQ on Indexing Services/SQL FTS
> > > http://www.indexserverfaq.com
> > >
> > > "ALN" <ALN@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > > news:77B1F47E-8B99-4635-868E-009B6BB63C50@xxxxxxxxxxxxxxxx
> > > > Hi,
> > > > I defined a publisher and a pushsubscriber with some articles. The
> > > articles
> > > > were Tables, Views and user defined functions. The pushsubscriber was
> > > created
> > > > with the sync_type=automatic. When I synchronisize the publisher with the
> > > > subscriber, the merge-agent fails on the follwing view creation command:
> > > >
> > > > CREATE VIEW [dbo].[TGS_CATALOG]
> > > > AS
> > > > SELECT TOP 100 PERCENT dbo.TGS_BAUMTHEMEN.SORT * 100 +
> > > > dbo.TGS_CATALOG_MASTER.SORT AS LFDNUM,
> > > > dbo.NullStringFilter(dbo.TGS_REVIERE.REVIER) +
> > > > dbo.NullStringFilter(dbo.TGS_BAUMTHEMEN.BAUMTHEMA)
> > > > +
> > > > dbo.NullStringFilter(dbo.TGS_CATALOG_MASTER.BAUMZWEIG1) COLLATE
> > > > Latin1_General_CS_AS AS PFAD,
> > > > dbo.TGS_CATALOG_MASTER.ENTITYNUM,
> > > > dbo.TGS_CATALOG_MASTER.TABLENAME, dbo.TGS_CATALOG_MASTER.SORT,
> > > > dbo.TGS_CATALOG_MASTER.THEMENELEMENT,
> > > > dbo.TGS_CATALOG_MASTER.THEMA, dbo.TGS_CATALOG_MASTER.DECKERALIAS,
> > > > dbo.TGS_CATALOG_MASTER.BAUMTHEMA,
> > > > dbo.TGS_CATALOG_MASTER.BAUMZWEIG1, dbo.TGS_CATALOG_MASTER.MARKER,
> > > > dbo.TGS_CATALOG_MASTER.KEYS,
> > > > dbo.TGS_CATALOG_MASTER.REVIERID
> > > > FROM dbo.TGS_BAUMTHEMEN INNER JOIN
> > > > dbo.TGS_CATALOG_MASTER ON
> > > dbo.TGS_BAUMTHEMEN.REVIERID
> > > > = dbo.TGS_CATALOG_MASTER.REVIERID AND
> > > > dbo.TGS_BAUMTHEMEN.BAUMTHEMA =
> > > > dbo.TGS_CATALOG_MASTER.BAUMTHEMA INNER JOIN
> > > > dbo.TGS_REVIERE ON dbo.TGS_BAUMTHEMEN.REVIERID =
> > > > dbo.TGS_REVIERE.REVIERID
> > > >
> > > > I looked in the logfile and saw that there was a drop command of the user
> > > > defined function 'NullStringFilter', but no recreationof it before the
> > > > create command
> > > > was proccessed. Therfore the creation of the view fails.
> > > >
> > > > What can I do to change the order of the schema creation process ?
> > > >
> > > > I want to recreate the user defined functions before the recreation of the
> > > > views
> > > > starts !!!
> > > >
> > > > Best regards
> > > >
> > > > Axel Lanser
> > >
> > >
> > >
.



Relevant Pages

  • Re: Backgroundworker object instead of component
    ... definition from the compile settings in the project file. ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Because BackgroundWorker is derived from ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Merge-Agent error
    ... "Paul Ibison" wrote: ... >> databases is that this database is much bigger then the others and there ... >> Best regards ... >> Axel Lanser ...
    (microsoft.public.sqlserver.replication)
  • Re: checkbox = -1
    ... looks like we read the same articles in the past :-) ... Your posting did`t show up when i posted my explanation, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: DTS and replication
    ... The replication log reader ... >> I have a publisher and some pushsubscriber with merge replication. ... >> Best regards ... >> Axel Lanser ...
    (microsoft.public.sqlserver.dts)
  • Re: Drawing Graphics and undo this
    ... Regards ... > Look for double buffering, drawing on images, why stuff disappears and ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ... >> when the Right Mouse Button is Pressed and the Rectangle should Resize, ...
    (microsoft.public.dotnet.languages.csharp)