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


Error 208: Invalid object name ''msdb.dbo.MSdistpublishers''


Error 208: Invalid object name ''msdb.dbo.MSdistpublishers''

Author
Message
bguo
bguo
SSC Veteran
SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)

Group: General Forum Members
Points: 210 Visits: 96
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!!
bguo
bguo
SSC Veteran
SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)SSC Veteran (210 reputation)

Group: General Forum Members
Points: 210 Visits: 96
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)
geminiunderhill
geminiunderhill
Valued Member
Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)Valued Member (63 reputation)

Group: General Forum Members
Points: 63 Visits: 0
Any ideas why the object would disappear in the first place?
toheebbellob01
toheebbellob01
Forum Newbie
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)

Group: General Forum Members
Points: 6 Visits: 38
starsthescqw - Monday, January 25, 2010 11:55 AM
Kumaran Govender (10/29/2008)
Hi Guys,I know that is is an old topic, but the net does not seem to come up with an easy solution. After playing around for a bit I managed to fix it, here is the soltion:-After ensuring that "SELECT @@SERVERNAME" is NOT NULL ensure that the '[MSdistributiondbs]' and '[MSdistpublishers] ' tables are NOT present in the msdb database. If the are remove then and use the code below to add them back. Once this is done the "Error 208:..." will disappear and you can proceed in setting up your replication.Good Luck BigGrinUSE msdbGOCREATE TABLE [MSdistributiondbs] ([name] [sysname] NOT NULL ,[min_distretention] [int] NOT NULL ,[max_distretention] [int] NOT NULL ,[history_retention] [int] NOT NULL) ON [PRIMARY]GOCREATE TABLE [dbo].[MSdistpublishers] ([name] [sysname] NOT NULL ,[distribution_db] [sysname] NOT NULL ,[working_directory] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,[security_mode] [int] NOT NULL ,[login] [sysname] NOT NULL ,[password] [nvarchar] (524) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,[active] [bit] NOT NULL ,[trusted] [bit] NOT NULL ,[thirdparty_flag] [bit] NOT NULL ) ON [PRIMARY]GO

Good solution, this fixed my issue immediately. Thank you so much..

Kumaran Govender
Kumaran Govender
Mr or Mrs. 500
Mr or Mrs. 500 (599 reputation)Mr or Mrs. 500 (599 reputation)Mr or Mrs. 500 (599 reputation)Mr or Mrs. 500 (599 reputation)Mr or Mrs. 500 (599 reputation)Mr or Mrs. 500 (599 reputation)Mr or Mrs. 500 (599 reputation)Mr or Mrs. 500 (599 reputation)

Group: General Forum Members
Points: 599 Visits: 18
toheebbellob01 - Tuesday, January 9, 2018 4:21 AM
starsthescqw - Monday, January 25, 2010 11:55 AM
Kumaran Govender (10/29/2008)
Hi Guys,I know that is is an old topic, but the net does not seem to come up with an easy solution. After playing around for a bit I managed to fix it, here is the soltion:-After ensuring that "SELECT @@SERVERNAME" is NOT NULL ensure that the '[MSdistributiondbs]' and '[MSdistpublishers] ' tables are NOT present in the msdb database. If the are remove then and use the code below to add them back. Once this is done the "Error 208:..." will disappear and you can proceed in setting up your replication.Good Luck BigGrinUSE msdbGOCREATE TABLE [MSdistributiondbs] ([name] [sysname] NOT NULL ,[min_distretention] [int] NOT NULL ,[max_distretention] [int] NOT NULL ,[history_retention] [int] NOT NULL) ON [PRIMARY]GOCREATE TABLE [dbo].[MSdistpublishers] ([name] [sysname] NOT NULL ,[distribution_db] [sysname] NOT NULL ,[working_directory] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ,[security_mode] [int] NOT NULL ,[login] [sysname] NOT NULL ,[password] [nvarchar] (524) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ,[active] [bit] NOT NULL ,[trusted] [bit] NOT NULL ,[thirdparty_flag] [bit] NOT NULL ) ON [PRIMARY]GO

Good solution, this fixed my issue immediately. Thank you so much..


Good to see my solution still helping 10 years after I posted it...
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