Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Error 208: Invalid object name ''msdb.dbo.MSdistpublishers'' Expand / Collapse
Author
Message
Posted Tuesday, January 26, 2010 2:44 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, July 9, 2014 1:53 PM
Points: 7, Visits: 90
hi guys.. sorry if my english is not so good..

im just reading this post because im having the same issue..
i getting an error 208 trying to create a publication, after several tryes of creating the publication (Transactional replication) i got the same error.. but with a little diference 'Invalid object name dbo.syspublications' --> I don't know in what database is that object..

Steps done in several tries

MSDB DATABASE --> Recreation (Cheked)
@@servername --> not null (Cheked)
Distribution database --> RECREATION (Checked)
Linked server --> Server is connected to a linkin server (what is going to be the subscriber server)--(CHECKED)

i just want to know if it is better droping all the information of replication in the server.. and just start over, because getting the same error 'Invalid object name dbo.syspublications'

Server information: Sql Server 2005 SP3
Transactional replication (Creating Publication)


thanks and waiting for some information to solve this!



Post #853990
Posted Friday, June 1, 2012 1:30 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, June 24, 2014 7:48 AM
Points: 5, Visits: 83
Our OS has problem, we reinstalled SQL, then drop the distributor database, ... had same problem
error: Invalid object name 'msdb.dbo.MSdistributiondbs'. (Microsoft SQL Server, Error: 208)
here is what I did, worked
1. restore the old 'msdb' to database as old_msdb'
2. script table [dbo].[MSdistributiondbs] from old_msdb' to run under the current msdb:
use msdb
CREATE TABLE [dbo].[MSdistributiondbs](
[name] [sysname] NOT NULL,
[min_distretention] [int] NOT NULL,
[max_distretention] [int] NOT NULL,
[history_retention] [int] NOT NULL
) ON [PRIMARY]

GO
3. when I try to use configure distributor, got other error: Invalid object name 'msdb.dbo.MSdistpublishers', then I did script table MSdistpublishers to current msdb
use msdb
CREATE TABLE [dbo].[MSdistpublishers](
[name] [sysname] NOT NULL,
[distribution_db] [sysname] NOT NULL,
[working_directory] [nvarchar](255) NOT NULL,
[security_mode] [int] NOT NULL,
[login] [sysname] NOT NULL,
[password] [nvarchar](524) NULL,
[active] [bit] NOT NULL,
[trusted] [bit] NOT NULL,
[thirdparty_flag] [bit] NOT NULL,
[publisher_type] [sysname] NOT NULL
) ON [PRIMARY]

GO

ALTER TABLE [dbo].[MSdistpublishers] ADD DEFAULT (N'MSSQLSERVER') FOR [publisher_type]
GO
Then, everything is fine. check 2 tables
1. MSdistributiondbs
2. MSdistpublishers
are under msdb/table, not under msdb/table/systable. It is fine. Worked!!
Post #1309952
Posted Friday, June 1, 2012 1:49 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, June 24, 2014 7:48 AM
Points: 5, Visits: 83


Our OS hardware had problem, we reinstalled SQL, then drop the
distributor database, ... had problem, got error: Invalid object name
'msdb.dbo.MSdistributiondbs'. (Microsoft SQL Server, Error: 208)
here is what I did, worked
1. restore the old 'msdb' to database as old_msdb'
2. script table [dbo].[MSdistributiondbs] from old_msdb' to run under the current msdb:
use msdb
CREATE TABLE [dbo].[MSdistributiondbs](
[name] [sysname]
NOT NULL,
[min_distretention] [int] NOT NULL,
[max_distretention] [int]
NOT NULL,
[history_retention] [int] NOT NULL
) ON
[PRIMARY]

GO
3. when I try to use configure distributor, got another
error: Invalid object name 'msdb.dbo.MSdistpublishers', then I did script table
MSdistpublishers to current msdb
use msdb
CREATE TABLE
[dbo].[MSdistpublishers](
[name] [sysname] NOT NULL,
[distribution_db]
[sysname] NOT NULL,
[working_directory] [nvarchar](255) NOT
NULL,
[security_mode] [int] NOT NULL,
[login] [sysname] NOT
NULL,
[password] [nvarchar](524) NULL,
[active] [bit] NOT
NULL,
[trusted] [bit] NOT NULL,
[thirdparty_flag] [bit] NOT
NULL,
[publisher_type] [sysname] NOT NULL
) ON
[PRIMARY]

GO

ALTER TABLE [dbo].[MSdistpublishers] ADD DEFAULT
(N'MSSQLSERVER') FOR [publisher_type]
GO
Then, everything is fine. check 2 tables
1. MSdistributiondbs
2. MSdistpublishers
are under msdb/table, not under msdb/table/systable. It is fine. Worked!!


Baimei Guo (http://www.cdbaby.com/cd/baimei)
Post #1309962
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse