SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Invalid Object Name in Transaction Replication Error 208


Invalid Object Name in Transaction Replication Error 208

Author
Message
dba.sql29
dba.sql29
SSC-Enthusiastic
SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)

Group: General Forum Members
Points: 143 Visits: 1222
Hi Experts

I have set up a Transaction Replication and its working fine on most of the database in one of the database its giving me error. This is the error 'vwTrip_Leg' is a view in database. Please help

Thank you

Command attempted:
/*
Select * From fnMemberBenefitsUsedCSPIID(2013,'CM2026526','01/01/2013','H0544015')

Description:
Return table of Legs with flags for each benefit indicating if the benefit covers
the leg otherwise it’s a one-way
*/
CREATE function [dbo].[fnMemberBenefitsUsedCSPIID]
(
@Year int
, @SBSB_ID varchar ( 9 )
, @MEPE_EFF_DT date
, @CSPI_ID varchar ( 8 )
)
Returns Table
as Return
(

Select
SBSB_ID = @SBSB_ID
, MEPE_EFF_DT = @MEPE_EFF_DT
, v.Trip_ID
, v.Leg_ID
, v.Trans
(Transaction sequence number: 0x0000008500082101000500000000, Command ID: 106)

Error messages:
Invalid object name 'vwTrip_Leg'. (Source: MSSQLServer, Error number: 208)
Get help: http://help/208
Invalid object name 'vwTrip_Leg'. (Source: MSSQLServer, Error number: 208)
Get help: http://help/208
Andrew G
Andrew G
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2517 Visits: 2254
Does the view "vwTrip_Leg" exist on the subscriber?
dba.sql29
dba.sql29
SSC-Enthusiastic
SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)

Group: General Forum Members
Points: 143 Visits: 1222
no it does not exist on subscriber.

also when I created replication it created a lot of jobs at Distribution database and in Replication Monitor I am seening old replication Publication how should I delete them ?

Thanks for your help
Andrew G
Andrew G
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2517 Visits: 2254
If the old publication does not have any subscribtions, you can drop it using:
EXEC sp_droppublication @publication = 'oldpublication'



But make sure there's no subscriptions first.

Add the missing view (or all views) to the publication by going into the articles and ticking Views. Then generate a new snapshot and it will be applied at the subscriber.
dba.sql29
dba.sql29
SSC-Enthusiastic
SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)

Group: General Forum Members
Points: 143 Visits: 1222
Thanks A lot for your help Smile
dba.sql29
dba.sql29
SSC-Enthusiastic
SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)SSC-Enthusiastic (143 reputation)

Group: General Forum Members
Points: 143 Visits: 1222
I have another question when I am looking at distribution database I am seeing a lot of job.

Our Database get refreshed every month and it breaks the replication and I have to recreated the entire replication again. Should I drop the Distribution database also and recreate it everything from scratch???

Thanks
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search