Groups | Blog | Home
all groups > sql server replication > october 2007 >

sql server replication : -SubscriberEncryptedPassword



Anders
10/18/2007 8:29:07 AM
I do have a problem in executing parts of the script generated by the "script
generator" on a replication job.
I have a merge replication "pull subscription", and a job that replicate.
This works perfectly
However, I do want to make the script that creates the job, and the script
can be generated by the agent (so my endusers that DEFINITELY have NO
knowledge of MSSQL serves al all, just need to click on a button, and my
application should then do all the job for him).
In this script, the subscriber, distributor and publisher is - hard coded.
I do want to exchange these serves with parameters in a stored procedure (so
the servernames can be imported as parameters). In the command
"msdb.dbo.sp_addJobstep", the command cannot be set as
"-Publisher='+@MyPublishername+' .... (@MyPublishername is nvarchar(3201)
Despite the syntact for concatenation of strings is String1+String2....
Why?
By stepwise concatenation of all the substrings, containing the parameters,
it is accepted, but the job fails, since the "SubscriberEncryptedPassword"
now is replaced with '?????????????????????". I cannot execute the job (only
if I replace the generated SubscriberEncryptedPassword with the native one -
and hardcoded, it works. (apparently, this encrypted password is in
non-printable characters)
How can I get hold of this "SubscriberEncryptedPassword" parameter

Anders
Anders
10/19/2007 6:03:00 AM
Hi Hilary

Apparently, the link:
http://www.nwsu.com/0974973602.html
Applies only for transactional and snapshot replication,

The link
http://www.indexserverfaq.com
most of the link is "Comming Soon - dated 1/31/05"
the piece of code, I do not fully understand:

declare @password nvarchar(1048)

select @password=subscriber_password from MSdistribution_agents where
@name=DistributionAgentname
-- the tables are found in the distributers "distribution" database. and the
MSdistribution_agents doesn't contain a column with the name
"subscriber_password"

select @password=subscriber_password from MSmerge_agents where
@name=MergeAgentname

- this table actually is empty, and also doesn't contain a columne with the
name "subscriber_password"

Can I retrive this information on a table/view somewhere on the subscriber
server?
Anders

[quoted text, click to view]
Hilary Cotter
10/19/2007 8:04:20 AM
answers line.

--
RelevantNoise.com - dedicated to mining blogs for business intelligence.

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
[quoted text, click to view]

SQL Server autogenerates the job names, what you put in is overridden.


[quoted text, click to view]
have you tried to grab it from the agent tables?

declare @password nvarchar(1048)

select @password=subscriber_password from MSdistribution_agents where
@name=DistributionAgentname

select @password=subscriber_password from MSmerge_agents where
@name=MergeAgentname


[quoted text, click to view]

AddThis Social Bookmark Button