Friday, March 30, 2012
replication error message in SQL Server 2005 (June CTP)
When I try to create a new Publication for Replication (using the Management
Studio), I get the error message:
Invalid object name msdb.dbo.MSdistributiondbs
Yes, I do not have the above table and I don't see any old publications (the
older ones were removed via Publisher Properties). Why does SQL Server think
that I still have some old publications? Where does it store the info? I
don't find any tables like MSDdistribution, MSdistpublishers etc.http://communities.microsoft.com/newsgroups/default.asp?icp=sqlserver2005
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Manfield" wrote:
> I upgraded from earlier version of SQL Server 2005 CTP to the June version.
> When I try to create a new Publication for Replication (using the Management
> Studio), I get the error message:
> Invalid object name msdb.dbo.MSdistributiondbs
> Yes, I do not have the above table and I don't see any old publications (the
> older ones were removed via Publisher Properties). Why does SQL Server think
> that I still have some old publications? Where does it store the info? I
> don't find any tables like MSDdistribution, MSdistpublishers etc.
>
replication error message in SQL Server 2005 (June CTP)
When I try to create a new Publication for Replication (using the Management
Studio), I get the error message:
Invalid object name msdb.dbo.MSdistributiondbs
Yes, I do not have the above table and I don't see any old publications (the
older ones were removed via Publisher Properties). Why does SQL Server think
that I still have some old publications? Where does it store the info? I
don't find any tables like MSDdistribution, MSdistpublishers etc.
http://communities.microsoft.com/new...=sqlserver2005
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Manfield" wrote:
> I upgraded from earlier version of SQL Server 2005 CTP to the June version.
> When I try to create a new Publication for Replication (using the Management
> Studio), I get the error message:
> Invalid object name msdb.dbo.MSdistributiondbs
> Yes, I do not have the above table and I don't see any old publications (the
> older ones were removed via Publisher Properties). Why does SQL Server think
> that I still have some old publications? Where does it store the info? I
> don't find any tables like MSDdistribution, MSdistpublishers etc.
>
replication error message in SQL Server 2005 (June CTP)
When I try to create a new Publication for Replication (using the Management
Studio), I get the error message:
Invalid object name msdb.dbo.MSdistributiondbs
Yes, I do not have the above table and I don't see any old publications (the
older ones were removed via Publisher Properties). Why does SQL Server think
that I still have some old publications? Where does it store the info? I
don't find any tables like MSDdistribution, MSdistpublishers etc.http://communities.microsoft.com/ne...p=sqlserver2005
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Jason Manfield" wrote:
> I upgraded from earlier version of SQL Server 2005 CTP to the June version
.
> When I try to create a new Publication for Replication (using the Manageme
nt
> Studio), I get the error message:
> Invalid object name msdb.dbo.MSdistributiondbs
> Yes, I do not have the above table and I don't see any old publications (t
he
> older ones were removed via Publisher Properties). Why does SQL Server thi
nk
> that I still have some old publications? Where does it store the info? I
> don't find any tables like MSDdistribution, MSdistpublishers etc.
>sql
Replication Error Message
on one of our servers. I have no ideal why, any help would be appreciated.
This error is from the application log on the replication server to our web
server. I think it is because it is trying to login as user "null" but i
have no ideal where to set this.
Thank you.
Greg
Event Type: Information
Event Source: SQLAgent$INST2DB
Event Category: Job Engine
Event ID: 203
Date: 11/15/2005
Time: 5:03:45 PM
User: N/A
Computer: VS2DB
Description:
SubSystem Message - Job 'VS2DB\INST2DB-Charity-WEBSERVER-13'
(0x5F1388610429AD4B8860D51DF8504198), step 2 - Login failed for user
'(null)'. Reason: Not associated with a trusted SQL Server connection. The
process could not connect to Subscriber 'WEBSERVER'.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
It looks like you are trying to logon to a SQL Server using SQL
authentication and this server is not configured for mixed mode
authentication.
"greg" <anomious@.microsoft.com> wrote in message
news:O9UGJqj6FHA.2040@.TK2MSFTNGP14.phx.gbl...
>I get the following error message when I run replication that I have set up
>on one of our servers. I have no ideal why, any help would be appreciated.
>This error is from the application log on the replication server to our web
>server. I think it is because it is trying to login as user "null" but i
>have no ideal where to set this.
> Thank you.
> Greg
> Event Type: Information
> Event Source: SQLAgent$INST2DB
> Event Category: Job Engine
> Event ID: 203
> Date: 11/15/2005
> Time: 5:03:45 PM
> User: N/A
> Computer: VS2DB
> Description:
> SubSystem Message - Job 'VS2DB\INST2DB-Charity-WEBSERVER-13'
> (0x5F1388610429AD4B8860D51DF8504198), step 2 - Login failed for user
> '(null)'. Reason: Not associated with a trusted SQL Server connection. The
> process could not connect to Subscriber 'WEBSERVER'.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
>
|||Hillary, thanks for the response, I check both servers and they are set up
to user both SQL and Windows authentication. Do you have any other ideas?
"Hilary Cotter" <hilary.cotter@.gmail.com> wrote in message
news:%237M1YNk6FHA.1140@.tk2msftngp13.phx.gbl...
> It looks like you are trying to logon to a SQL Server using SQL
> authentication and this server is not configured for mixed mode
> authentication.
> "greg" <anomious@.microsoft.com> wrote in message
> news:O9UGJqj6FHA.2040@.TK2MSFTNGP14.phx.gbl...
>
Friday, March 23, 2012
Replication conflict
I am using SQL Server 2005 replication. In the Conflict Viewer I have the
following message for the conflict being reported.
The same row was updated at both
'[Publisher]'
and '[Subscriber]'.
The resolver chose the update from '[Publisher]' as the winner.
The table is not filtered and does have one Trigger:
ALTER TRIGGER [dbo].[Last_mod_date] ON [dbo].[TitleMaster]
FOR INSERT, UPDATE NOT FOR REPLICATION
AS
DECLARE @.chvLastModUser VARCHAR(20), @.dtmLastModDate DATETIME, @.uidID
UNIQUEIDENTIFIER
SELECT @.uidID = tm_row_id
FROM inserted
SELECT @.chvLastModUser =
REPLACE(SUSER_SNAME(),LEFT(SUSER_SNAME(),CHARINDEX ('\',SUSER_SNAME())),'')
SELECT @.dtmLastModDate = GETDATE()
UPDATE titlemaster SET
tm_last_mod_date = @.dtmLastModDate,
tm_last_mod_user = @.chvLastModUser
WHERE tm_row_id = @.uidID
This problem does not take place for all records.
Help will be greatly appreaciated.
Thanks!
Ben
Ben,
are you saying there shouldn't be a conflict at all ie the same row hasn't
been changed at publisher and subscriber? Also are you saying that the
trigger is causing this problem? I'm not too clear. Although I'm guessing
here because of not knowing the above issues, is the column "tm_row_id"
unique ie are there any duplicates of "tm_row_id"?
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
|||First off I think your trigger is incorrect. It is only good for singleton
inserts and updates. Are you certain you only have singleton inserts and
updates? In other words do you only insert and update one row at a time?
I think the trigger should look like this
alter TRIGGER [dbo].[Last_mod_date] ON [dbo].[TitleMaster]
FOR INSERT, UPDATE NOT FOR REPLICATION
AS
UPDATE titlemaster SET
tm_last_mod_date = GETDATE(),
tm_last_mod_user =
REPLACE(SUSER_SNAME(),LEFT(SUSER_SNAME(),CHARINDEX ('\',SUSER_SNAME())),'')
from titlemaster ,inserted
WHERE titlemaster.tm_row_id = inserted.tm_row_id
You might find this performs better, not to mention being more accurate
Secondly, it looks like this statement
REPLACE(SUSER_SNAME(),LEFT(SUSER_SNAME(),CHARINDEX ('\',SUSER_SNAME())),''),
is removing the domain name, whereas this will perform better for you.
select case when charindex(SUSER_SNAME(),'\')>0 then
right(SUSER_SNAME(),CHARINDEX('\',SUSER_SNAME()))
else SUSER_SNAME() end
You need the case statement in there to handle sql authenticated users.
Thirdly there is the whole issue of using a guid column as a pk, consult
http://databases.aspfaq.com/database/what-should-i-choose-for-my-primary-key.html
Finally your replication problem. If the same row is updated on both sides
between sync's you will have a conflict. The way your trigger is written
this will always be the case, even with column level tracking. The not for
replication clause ensures that replication processes do not cause this
conflict.
How is the data updated/inserted? Is it from identical feeds?
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
"Ben" <Ben@.discussions.microsoft.com> wrote in message
news:A2702486-3172-4A02-84F0-36061BEB7944@.microsoft.com...
> Hi,
> I am using SQL Server 2005 replication. In the Conflict Viewer I have the
> following message for the conflict being reported.
> The same row was updated at both
> '[Publisher]'
> and '[Subscriber]'.
> The resolver chose the update from '[Publisher]' as the winner.
>
> The table is not filtered and does have one Trigger:
> ALTER TRIGGER [dbo].[Last_mod_date] ON [dbo].[TitleMaster]
> FOR INSERT, UPDATE NOT FOR REPLICATION
> AS
> DECLARE @.chvLastModUser VARCHAR(20), @.dtmLastModDate DATETIME, @.uidID
> UNIQUEIDENTIFIER
> SELECT @.uidID = tm_row_id
> FROM inserted
> SELECT @.chvLastModUser =
> REPLACE(SUSER_SNAME(),LEFT(SUSER_SNAME(),CHARINDEX ('\',SUSER_SNAME())),'')
> SELECT @.dtmLastModDate = GETDATE()
> UPDATE titlemaster SET
> tm_last_mod_date = @.dtmLastModDate,
> tm_last_mod_user = @.chvLastModUser
> WHERE tm_row_id = @.uidID
> This problem does not take place for all records.
> Help will be greatly appreaciated.
> Thanks!
> Ben
|||Hi Paul,
- There should not be a conflict. The row was modified at the Publisher but
not at the Subscriber.
- I don't think the trigger is causing the problem, according to the NOT FOR
REPLICATION statement, it is not supposed to happen. I just wanted to add
information that could aid in troubleshooting.
- The tm_row_id is unique and there are no duplicates.
Thanks for your help.
Ben
"Paul Ibison" wrote:
> Ben,
> are you saying there shouldn't be a conflict at all ie the same row hasn't
> been changed at publisher and subscriber? Also are you saying that the
> trigger is causing this problem? I'm not too clear. Although I'm guessing
> here because of not knowing the above issues, is the column "tm_row_id"
> unique ie are there any duplicates of "tm_row_id"?
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
>
>
|||Hi Hilary,
In this case, the same row was not modified in both ends. Will removing the
trigger stop this problem?
The data into this table is added by an end user at the Publisher. The
Publisher is the only one that has any interaction with this table when it
comes to inserting and updating.
Thanks for your help
Ben
"Hilary Cotter" wrote:
> First off I think your trigger is incorrect. It is only good for singleton
> inserts and updates. Are you certain you only have singleton inserts and
> updates? In other words do you only insert and update one row at a time?
> I think the trigger should look like this
> alter TRIGGER [dbo].[Last_mod_date] ON [dbo].[TitleMaster]
> FOR INSERT, UPDATE NOT FOR REPLICATION
> AS
> UPDATE titlemaster SET
> tm_last_mod_date = GETDATE(),
> tm_last_mod_user =
> REPLACE(SUSER_SNAME(),LEFT(SUSER_SNAME(),CHARINDEX ('\',SUSER_SNAME())),'')
> from titlemaster ,inserted
> WHERE titlemaster.tm_row_id = inserted.tm_row_id
> You might find this performs better, not to mention being more accurate
> Secondly, it looks like this statement
> REPLACE(SUSER_SNAME(),LEFT(SUSER_SNAME(),CHARINDEX ('\',SUSER_SNAME())),''),
> is removing the domain name, whereas this will perform better for you.
> select case when charindex(SUSER_SNAME(),'\')>0 then
> right(SUSER_SNAME(),CHARINDEX('\',SUSER_SNAME()))
> else SUSER_SNAME() end
> You need the case statement in there to handle sql authenticated users.
>
> Thirdly there is the whole issue of using a guid column as a pk, consult
> http://databases.aspfaq.com/database/what-should-i-choose-for-my-primary-key.html
> Finally your replication problem. If the same row is updated on both sides
> between sync's you will have a conflict. The way your trigger is written
> this will always be the case, even with column level tracking. The not for
> replication clause ensures that replication processes do not cause this
> conflict.
> How is the data updated/inserted? Is it from identical feeds?
> --
> 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
>
> "Ben" <Ben@.discussions.microsoft.com> wrote in message
> news:A2702486-3172-4A02-84F0-36061BEB7944@.microsoft.com...
>
>
|||Actually I think the problem could be time zone related. Are both servers in
the same time zone?
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
"Ben" <Ben@.discussions.microsoft.com> wrote in message
news:3674B984-520E-4FE2-8366-AEC079D3F410@.microsoft.com...[vbcol=seagreen]
> Hi Hilary,
> In this case, the same row was not modified in both ends. Will removing
> the
> trigger stop this problem?
> The data into this table is added by an end user at the Publisher. The
> Publisher is the only one that has any interaction with this table when it
> comes to inserting and updating.
> Thanks for your help
> Ben
>
> "Hilary Cotter" wrote:
|||Ben - what I'd do is when it occurs, see what is the difference between the
rows ie what has changed on the subscriber which is unexpected? Then perhaps
use a log explorer tool to see what is causing the subscriber row to change
in this way.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
|||Hi Hilary,
They are both in the same city. The computer time could be slightly off.
Thanks
Ben
"Hilary Cotter" wrote:
> Actually I think the problem could be time zone related. Are both servers in
> the same time zone?
> --
> 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
>
> "Ben" <Ben@.discussions.microsoft.com> wrote in message
> news:3674B984-520E-4FE2-8366-AEC079D3F410@.microsoft.com...
>
>
|||Paul,
I will look to see what is different.
Thanks
Ben
"Paul Ibison" wrote:
> Ben - what I'd do is when it occurs, see what is the difference between the
> rows ie what has changed on the subscriber which is unexpected? Then perhaps
> use a log explorer tool to see what is causing the subscriber row to change
> in this way.
> Cheers,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
>
>
>
|||Hi Hilary,
I made the change to the trigger, but I am still having conflicts. I had to
re-do the replication and while the publisher was creating the publication I
noticed the following in the log:
the foreign key 'dbo.Order.FK_Orders_Stores' will not be scripted for
article 'Orders' because it references the key contraint
'dbo.Stores.IX_st_row_id' that is replicated only as an index
I could not find any reference to this message, and I was wondering if you
knew or could point me in the right direction.
Thanks for your help!
Ben
"Hilary Cotter" wrote:
> Actually I think the problem could be time zone related. Are both servers in
> the same time zone?
> --
> 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
>
> "Ben" <Ben@.discussions.microsoft.com> wrote in message
> news:3674B984-520E-4FE2-8366-AEC079D3F410@.microsoft.com...
>
>
Replication Breaks after applying SP4
I installed SP4 on our enterprise server this morning and now all
replication jobs fail with the message "No such interface supported"
Has anyone seen this before / know how to resolve this?
We run Enterprise Edition on Win2003
Many Thanks
D
nope. I suggest you re-register the replication dll's and exes. I think you
can find them in c:\program files\microsoft sql server\mssql\80\com
"DJ" <DJ@.discussions.microsoft.com> wrote in message
news:CA106D94-FD82-4099-A342-BF75A0910D5B@.microsoft.com...
> Hi
> I installed SP4 on our enterprise server this morning and now all
> replication jobs fail with the message "No such interface supported"
> Has anyone seen this before / know how to resolve this?
> We run Enterprise Edition on Win2003
> Many Thanks
> D
|||There was apparently an as yet not fully explained registry ACLing problem in
SP4 setup per the following thread (reported by Tomasz Skorupa originally):
http://groups.google.com/group/micro...85 a5a37097d4
With more than one person hitting the same problem, I would like to try
again and see if I can find out more about the cause of it. Was the user
running SP4 setup on the machine the same as the one running SQL Server Agent
service? If not, did the account running SP4 have privilege for enumerating
account information for the SQL Server Agent service account?
-Raymond Mak
"DJ" wrote:
> Hi
> I installed SP4 on our enterprise server this morning and now all
> replication jobs fail with the message "No such interface supported"
> Has anyone seen this before / know how to resolve this?
> We run Enterprise Edition on Win2003
> Many Thanks
> D
|||Thanks for the reply Raymond and apologies for not replying sooner but I have
been off work.
I tried re-registering the dll following the steps you mentioned in the
other thread but this did not work for me.
I re-registered them and stopped and started SQL Agent. Did I need to do
anything else?
The version of sqlrepss.dll on my instance is :2000.80.2039.0
I was not connected as the service account so I may not have had the
prvilages for enumeration the account informaion.
I can run the replication from the command line but I always get the error
when using Enterprise Manager.
Do you have any other suggestions to resolve this?
Many Thanks
Daryl
"Raymond Mak [MSFT]" wrote:
[vbcol=seagreen]
> There was apparently an as yet not fully explained registry ACLing problem in
> SP4 setup per the following thread (reported by Tomasz Skorupa originally):
> http://groups.google.com/group/micro...85 a5a37097d4
> With more than one person hitting the same problem, I would like to try
> again and see if I can find out more about the cause of it. Was the user
> running SP4 setup on the machine the same as the one running SQL Server Agent
> service? If not, did the account running SP4 have privilege for enumerating
> account information for the SQL Server Agent service account?
> -Raymond Mak
>
> "DJ" wrote:
sql
Friday, March 9, 2012
Replication (pulling a subscription)
Error 15004: Name cannot be null
What exactly have I done wrong
Plaese help
Thanks
Nneka EchebeLets' go thru the process again. I just tried to replicate with northwind. The problem I came up with is nameing convention. It would not accept the local name for the server. It has to have a proper registration name. I also found out that you must replication from the server or sa level. Meaning that remote loggins must have the highest level of access.
Wednesday, March 7, 2012
Replication - Can not create Publication database
I am trying to use Enterprise Manager Wizard to create a new
Publication database but I got the following message.
Error 2812: Could not find stored procedure
MyDB.dbo.sp_MSadd_logreader_agent
There seems that some replication stored procedures.
Any help?
Thanks in Advance"Ned" <nedabada@.yahoo.ca> wrote in message
news:3578739c.0501071331.3e845f66@.posting.google.c om...
> Hi,
> I am trying to use Enterprise Manager Wizard to create a new
> Publication database but I got the following message.
> Error 2812: Could not find stored procedure
> MyDB.dbo.sp_MSadd_logreader_agent
> There seems that some replication stored procedures.
> Any help?
> Thanks in Advance
You might get a better answer in microsoft.public.sqlserver.replication.
There are also lots of similar posts in the past, although I don't know if
any will apply to your situation exactly - Google "sql 2000 replication
error 2812" or something similar.
Simon
Replication
I have set a transactional replication, and everything
looks fine, but I get the following error message in my
Subscriptions:
( 'Server Name' is not configured as a distributor. The
step failed. )
any idea,
Thanks
Matthew,
Try (on the publisher/distributor):
Use Master
go
Select @.@.Servername
This should return your current server name but if it
returns NULL then try:
Use Master
go
Sp_DropServer 'Server1'
GO
Use Master
go
Sp_Addserver 'Server1', 'local'
GO
Stop and Start SQL Services
HTH,
Paul Ibison
Replication
I have set a transactional replication, and everything
looks fine, but I get the following error message in my
Subscriptions:
( 'Server Name' is not configured as a distributor. The
step failed. )
I checked my server name on the publisher/distributor and
it's returning the correct server name.
any idea,
Thanks
Are you using a remote distributor?
Connect to your publisher in EM, select tools, point to replication, click Configure Publishers, Subscribers, Distributors, and select publishers, does your publisher have a check mark to the left of its name in this dialog? Click on the browse button and
check to see how your replication agent is connecting to the publisher. You should be using the impersonate option.
Finally expand one of your failing replication agents, right click on it, select agent properties, click the step tab, highlight run agent, double click and in the command box, ensure that the -Distributor switch is pointing to the correct distributor.
Also verify that your DistributorSecurityMode is 1
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
"Mattew" wrote:
> Hi,
> I have set a transactional replication, and everything
> looks fine, but I get the following error message in my
> Subscriptions:
> ( 'Server Name' is not configured as a distributor. The
> step failed. )
> I checked my server name on the publisher/distributor and
> it's returning the correct server name.
> any idea,
> Thanks
>