Showing posts with label domain. Show all posts
Showing posts with label domain. Show all posts

Monday, March 26, 2012

Merge Replication w/ Web Synchronization Across Non-Trusted Domain

I have a requirement to replicate a portion of a 2005 database using merge
replication where the database server is in a workgroup at location A and the
web server is in an AD domain at location B. Both locations are connected
via a VPN.
Becuase of the disparate domains we are unable to push snapshots to a share
on the Web Server w/o using FTP. After specifying the FTP information in the
FTP Snapshot and Internet dialog, the following message is returned when
attempting to start the Snapshot Agent:
Message: The replication agent failed to create the directory
'\\172.27.1.187\unc\ftp\DAYMONJPSV02$TEST_CORE_APP RISCORE1\20071218021362\'.
Stack: at
Microsoft.SqlServer.Replication.Utilities.CreateDi rectoryWithExtendedErrorInformation(String directory)
at
Microsoft.SqlServer.Replication.Snapshot.SnapshotP rovider.CreateSnapshotFolders()
at
Microsoft.SqlServer.Replication.Snapshot.MergeSnap shotProvider.CreateSnapshotFolders()
at
Microsoft.SqlServer.Replication.Snapshot.SqlServer SnapshotProvider.GenerateSnapshot()
at Microsoft.SqlServer.Replication.SnapshotGeneration Agent.InternalRun()
at Microsoft.SqlServer.Replication.AgentCore.Run() (Source: MSSQL_REPL,
Error number: MSSQL_REPL52026)
Get help: http://help/MSSQL_REPL52026
Source: mscorlib
Target Site: Void WinIOError(Int32, System.String)
Message: Message: Logon failure: unknown user name or bad password.
Stack: at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String
path, DirectorySecurity dirSecurity)
at System.IO.Directory.CreateDirectory(String path, DirectorySecurity
directorySecurity)
at
Microsoft.SqlServer.Replication.Utilities.CreateDi rectoryWithExtendedErrorInformation(String directory) (Source: mscorlib, Error number: 0)
The user id and password are those of a domain user for the FTP server at
location B. Do I have to use a non-AD account?
You need to use a snapshot account which has rights to modify to
\\172.27.1.187\unc. You specify this account in sp_addpublication_snapshot
using the @.job_login and @.job_password parameters.
This account should exist on \\172.27.1.187 and your publisher.
http://www.zetainteractive.com - Shift Happens!
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
"parchk" <parchk@.discussions.microsoft.com> wrote in message
news:7575E064-365A-49B4-B479-AD3C7D4E14C8@.microsoft.com...
>I have a requirement to replicate a portion of a 2005 database using merge
> replication where the database server is in a workgroup at location A and
> the
> web server is in an AD domain at location B. Both locations are connected
> via a VPN.
> Becuase of the disparate domains we are unable to push snapshots to a
> share
> on the Web Server w/o using FTP. After specifying the FTP information in
> the
> FTP Snapshot and Internet dialog, the following message is returned when
> attempting to start the Snapshot Agent:
> Message: The replication agent failed to create the directory
> '\\172.27.1.187\unc\ftp\DAYMONJPSV02$TEST_CORE_APP RISCORE1\20071218021362\'.
> Stack: at
> Microsoft.SqlServer.Replication.Utilities.CreateDi rectoryWithExtendedErrorInformation(String
> directory)
> at
> Microsoft.SqlServer.Replication.Snapshot.SnapshotP rovider.CreateSnapshotFolders()
> at
> Microsoft.SqlServer.Replication.Snapshot.MergeSnap shotProvider.CreateSnapshotFolders()
> at
> Microsoft.SqlServer.Replication.Snapshot.SqlServer SnapshotProvider.GenerateSnapshot()
> at Microsoft.SqlServer.Replication.SnapshotGeneration Agent.InternalRun()
> at Microsoft.SqlServer.Replication.AgentCore.Run() (Source: MSSQL_REPL,
> Error number: MSSQL_REPL52026)
> Get help: http://help/MSSQL_REPL52026
> Source: mscorlib
> Target Site: Void WinIOError(Int32, System.String)
> Message: Message: Logon failure: unknown user name or bad password.
> Stack: at System.IO.__Error.WinIOError(Int32 errorCode, String
> maybeFullPath)
> at System.IO.Directory.InternalCreateDirectory(String fullPath, String
> path, DirectorySecurity dirSecurity)
> at System.IO.Directory.CreateDirectory(String path, DirectorySecurity
> directorySecurity)
> at
> Microsoft.SqlServer.Replication.Utilities.CreateDi rectoryWithExtendedErrorInformation(String
> directory) (Source: mscorlib, Error number: 0)
> The user id and password are those of a domain user for the FTP server at
> location B. Do I have to use a non-AD account?
|||Thanks Hillary. I am assuming that becasue the servers are in two different
security domains that the account should be local on both servers? Also, if
the publication has already been created, can it be modified to modify the
job_login and job_password parameters? Thanks in advance.
"Hilary Cotter" wrote:

> You need to use a snapshot account which has rights to modify to
> \\172.27.1.187\unc. You specify this account in sp_addpublication_snapshot
> using the @.job_login and @.job_password parameters.
> This account should exist on \\172.27.1.187 and your publisher.
> --
> http://www.zetainteractive.com - Shift Happens!
> 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
> "parchk" <parchk@.discussions.microsoft.com> wrote in message
> news:7575E064-365A-49B4-B479-AD3C7D4E14C8@.microsoft.com...
>
>
|||Exactly, it should be a local account on both servers.
You can modify the snapshot account by right clicking on the publication in
SSMS, selecting properties and clicking on the agent security tab.
http://www.zetainteractive.com - Shift Happens!
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
"parchk" <parchk@.discussions.microsoft.com> wrote in message
news:915C3515-3E0A-4755-88B7-DE72D927A0E2@.microsoft.com...[vbcol=seagreen]
> Thanks Hillary. I am assuming that becasue the servers are in two
> different
> security domains that the account should be local on both servers? Also,
> if
> the publication has already been created, can it be modified to modify the
> job_login and job_password parameters? Thanks in advance.
> "Hilary Cotter" wrote:

Wednesday, March 21, 2012

Merge Replication Problem with separate Publisher/Distributor

We are trying to setup merge replication using separate servers for the
publication and distribution. The servers are in the same domain. The same
domain account is used oon all servers involved with the replication. The
setup scripts perform the following task:
Distributor (Master db)
sp_AddDistributor
sp_MSupdateAgentType_default @.profile_id = 1
sp_MSupdateAgentType_default @.profile_id = 2
sp_MSupdateAgentType_default @.profile_id = 4
sp_MSupdateAgentType_default @.profile_id = 6
sp_MSupdateAgentType_default @.profile_id = 11
sp_AddDistributionDB
jobs: Agent History Cleanup
DistributionDB Cleanup
Sp_AddDistPublisher @.SecurityMode = 1
@.Trusted = N'False'
@.ThirdParty_flag = 0
do you have a remote distributor?
If not it sounds like your replication setup is not configured correctly.
Remove replication (follow the menu items to disable publishing) and
reinstall it.
"PaulW" <MSNewsGroup@.Digi-Sol.com> wrote in message
news:%23r2otLqMEHA.2064@.TK2MSFTNGP12.phx.gbl...
> We are trying to setup merge replication using separate servers for the
> publication and distribution. The servers are in the same domain. The same
> domain account is used oon all servers involved with the replication. The
> setup scripts perform the following task:
>
> Distributor (Master db)
>
> sp_AddDistributor
>
> sp_MSupdateAgentType_default @.profile_id = 1
> sp_MSupdateAgentType_default @.profile_id = 2
> sp_MSupdateAgentType_default @.profile_id = 4
> sp_MSupdateAgentType_default @.profile_id = 6
> sp_MSupdateAgentType_default @.profile_id = 11
>
> sp_AddDistributionDB
>
> jobs: Agent History Cleanup
> DistributionDB Cleanup
>
> Sp_AddDistPublisher @.SecurityMode = 1
> @.Trusted =
N'False'
> @.ThirdParty_flag = 0
> .
>
> Jobs: Expired Subscription Cleanup
> Reinitialize subscription having data validation failures
> Replication agent Checkup
> SnapShot
>
>
> Publisher (Master db)
>
> Jobs: Reinitialize subscription having data validation failures
> Replication agent Checkup
>
> sp_AddSubscriber
>
> Server: Msg 14071 Procedure sp_AddSubscriber, line 129 Could not find the
> Distributor or the distribution database for the local server. The
> Distributor may not be installed, or the local server may not be
configured
> as a Publisher at the Distributor
>
>
> E.M. on the distributor list the publisher with out any publications. Line
> 129 of sp_AddSubscriber is sp_HelpDistributor which according to the help
is
> to run only on the distributor, explaining the error. Sp_AddSubscriber is
> supposed to be run on the publisher.
>
> What am I missing?
>
>
> tia
> Paul
>
>
|||We are using a remote distributor. We did not set a password in
sp_adddistributor. In sp_adddistpublisher we tried both trusted and not
trusted. The authentication on all servers is set to Windows only. I noticed
that the distributor_admin account is a SQL Server account. Can this be the
problem? If so, is there a way to get this to run using Windows only?
Paul
"Hilary Cotter" <hilaryk@.att.net> wrote in message
news:ujpd7bxMEHA.2484@.TK2MSFTNGP09.phx.gbl...[vbcol=seagreen]
> do you have a remote distributor?
> If not it sounds like your replication setup is not configured correctly.
> Remove replication (follow the menu items to disable publishing) and
> reinstall it.
> "PaulW" <MSNewsGroup@.Digi-Sol.com> wrote in message
> news:%23r2otLqMEHA.2064@.TK2MSFTNGP12.phx.gbl...
same[vbcol=seagreen]
The[vbcol=seagreen]
> N'False'
the[vbcol=seagreen]
> configured
Line[vbcol=seagreen]
help[vbcol=seagreen]
> is
is
>
|||We tried to setup merge replication using the remote distributor through
E.M. and it worked. Then we used the option to generate SQL scripts. When we
ran the scripts, errors were generated. One of the errors was, in one job
only; the server name was used for the server name and the distributor
database name. They were not the same name.
We did find out that the distributor must be using SQL and Windows
authentication. That option along did not get our scripts working. There
must be something subtle that I am missing.
Paul
"PaulW" <MSNewsGroup@.Digi-Sol.com> wrote in message
news:#7OrH#3MEHA.1644@.TK2MSFTNGP09.phx.gbl...
> We are using a remote distributor. We did not set a password in
> sp_adddistributor. In sp_adddistpublisher we tried both trusted and not
> trusted. The authentication on all servers is set to Windows only. I
noticed
> that the distributor_admin account is a SQL Server account. Can this be
the[vbcol=seagreen]
> problem? If so, is there a way to get this to run using Windows only?
>
> Paul
>
> "Hilary Cotter" <hilaryk@.att.net> wrote in message
> news:ujpd7bxMEHA.2484@.TK2MSFTNGP09.phx.gbl...
correctly.[vbcol=seagreen]
the
> same
> The
> the
> Line
> help
> is
>
|||I believe this is because you don't have the addDistributor S.P. being run
on the publisher as well as the distributor. ;)

Wednesday, March 7, 2012

Merge replication delay

Hi,Friends
We have found a merge replication in two domain with one anonimous
subscriber. And we set the continuous replication. But the problem is that
data changed on publisher can not replicate immediately to subscriber.
Sometimes after 3 or 4 hours, sometimes after two days.
And in history logs there is a message occured frequently :
waiting for a background application call ( for excution, i can not remember
clearly )
Help me pls!
Thanks
Set your merge to use longer intervals - e.g. 15 minutes
After each sync check for data conflicts at the PUBLISHER side and check for
any other errors
The 15 minute gap will allow you time to see what exactly is going on
"Titanicliu" wrote:

> Hi,Friends
> We have found a merge replication in two domain with one anonimous
> subscriber. And we set the continuous replication. But the problem is that
> data changed on publisher can not replicate immediately to subscriber.
> Sometimes after 3 or 4 hours, sometimes after two days.
> And in history logs there is a message occured frequently :
> waiting for a background application call ( for excution, i can not remember
> clearly )
> Help me pls!
> Thanks

Monday, February 20, 2012

Merge replication and Domain Controller

Hi,
A few questions on merge replication and domain controller. We are using MS
SQL 2005 and Windows Server 2003.
1. Is domain controller a must for merge replication? Does performing
replication using Integrated Windows Authentication essentially has the same
effect as with a domain controller?
2. If merge replication is to be done with a domain controller, which method
of authentication, SQL Server Authentication or Integrated Windows
Authentication, can/should be used for replication? What are the advantages
of one over the other, if any?
3. I understand that MS does not recommend running SQL Server 2005 on a
domain controller. Having said that, this would mean we need to separate the
two. But we have the constraint of having only one machine. Is there any
workaround for this, that is, performing merge replication and achieving the
function of a domain controller but with only one machine?
My apologies if I am not making sense as I am not too familiar with these.
Would appreciate any help on this. Thanks in advance.
http://www.zetainteractive.com - Shift Happens!
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
"AimlessZombie" <AimlessZombie@.discussions.microsoft.com> wrote in message
news:09DB05F1-288D-4489-BFEF-2CB09FAF7E8B@.microsoft.com...
> Hi,
> A few questions on merge replication and domain controller. We are using
> MS
> SQL 2005 and Windows Server 2003.
> 1. Is domain controller a must for merge replication? Does performing
> replication using Integrated Windows Authentication essentially has the
> same
> effect as with a domain controller?
> 2. If merge replication is to be done with a domain controller, which
> method
> of authentication, SQL Server Authentication or Integrated Windows
> Authentication, can/should be used for replication? What are the
> advantages
> of one over the other, if any?
> 3. I understand that MS does not recommend running SQL Server 2005 on a
> domain controller. Having said that, this would mean we need to separate
> the
> two. But we have the constraint of having only one machine. Is there any
> workaround for this, that is, performing merge replication and achieving
> the
> function of a domain controller but with only one machine?
> My apologies if I am not making sense as I am not too familiar with these.
> Would appreciate any help on this. Thanks in advance.
|||Dear Aimless zombie.
1) No, you can use local machine accounts with pass through authentication
or use sql authentication.
2) you can use either sql authentication or integrated authentication. SQL
Authentication is intended for replicating between untrusted domains or
heterogeneous applications. Integrated authentication is more secure.
3) You don't need a domain controller.
http://www.zetainteractive.com - Shift Happens!
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
"AimlessZombie" <AimlessZombie@.discussions.microsoft.com> wrote in message
news:09DB05F1-288D-4489-BFEF-2CB09FAF7E8B@.microsoft.com...
> Hi,
> A few questions on merge replication and domain controller. We are using
> MS
> SQL 2005 and Windows Server 2003.
> 1. Is domain controller a must for merge replication? Does performing
> replication using Integrated Windows Authentication essentially has the
> same
> effect as with a domain controller?
> 2. If merge replication is to be done with a domain controller, which
> method
> of authentication, SQL Server Authentication or Integrated Windows
> Authentication, can/should be used for replication? What are the
> advantages
> of one over the other, if any?
> 3. I understand that MS does not recommend running SQL Server 2005 on a
> domain controller. Having said that, this would mean we need to separate
> the
> two. But we have the constraint of having only one machine. Is there any
> workaround for this, that is, performing merge replication and achieving
> the
> function of a domain controller but with only one machine?
> My apologies if I am not making sense as I am not too familiar with these.
> Would appreciate any help on this. Thanks in advance.
|||Hi Hilary,
Thanks for the prompt help. Just a couple more questions with respect to
your replies.
1) Can either pass through authentication or use sql authentication achieve
the role of a domain controller? Or is there no basis for comparison at all
in the first place?
3) What if I must have a domain controller (part of requirement) but yet
only one machine available? Is there no workaround to my constraint to have
both domain controller and replication?
Thanks.
"Hilary Cotter" wrote:

> Dear Aimless zombie.
> 1) No, you can use local machine accounts with pass through authentication
> or use sql authentication.
> 2) you can use either sql authentication or integrated authentication. SQL
> Authentication is intended for replicating between untrusted domains or
> heterogeneous applications. Integrated authentication is more secure.
> 3) You don't need a domain controller.
>
> --
> http://www.zetainteractive.com - Shift Happens!
> 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
> "AimlessZombie" <AimlessZombie@.discussions.microsoft.com> wrote in message
> news:09DB05F1-288D-4489-BFEF-2CB09FAF7E8B@.microsoft.com...
>
>
|||Dear Aimless Zombie
1) Can either pass through authentication or use sql authentication achieve
the role of a domain controller? Or is there no basis for comparison at all
in the first place?
No a domain controller is primarily used to authenticate users. You will not
be able to add local machine accounts to a domain controller, so you will
need to add domain accounts. You can still use pass through authentication
as long as the subscriber has a local machine account with the same name and
password. It is not recommended that you install SQL Server on a domain
controller as if SQL Server is compromised your entire domain will be.
3) What if I must have a domain controller (part of requirement) but yet
only one machine available? Is there no workaround to my constraint to have
both domain controller and replication?
You can install SQL Server on your domain controller but it is considered to
be a security risk.
I am not sure what you are doing, but I think you will make life simpler for
yourself if you use push subscriptions.
http://www.zetainteractive.com - Shift Happens!
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
"AimlessZombie" <AimlessZombie@.discussions.microsoft.com> wrote in message
news:76DC30CD-7E60-4EEC-8736-3661788DDCDC@.microsoft.com...[vbcol=seagreen]
> Hi Hilary,
> Thanks for the prompt help. Just a couple more questions with respect to
> your replies.
> 1) Can either pass through authentication or use sql authentication
> achieve
> the role of a domain controller? Or is there no basis for comparison at
> all
> in the first place?
> 3) What if I must have a domain controller (part of requirement) but yet
> only one machine available? Is there no workaround to my constraint to
> have
> both domain controller and replication?
> Thanks.
> "Hilary Cotter" wrote: