Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...(I) have been able to get my problems solved from past messages and also new posts that other users have responded to promptly..."

Geography

Where in the world do Tek-Tips members come from?

Sybase Replication Server - Create user error

xhan13nyuwe (IS/IT--Management)
13 Mar 11 6:28
i have this problem with replication server :

when i create user from Client application the replication server and replicate database became suspend.

to insert login in replicate server database i am using bcp out and in, the step is :

Primary Database
-----------------
1. Dump Primary database = primary.dump
2. bcp out (master.syslogins)
3. in text file that bcp out created  delete row suid number 1 and 2 (sa and   probe)

Replicate Database
-------------------
4. sp_configure 'allow updates',1
5. bcp in (master.syslogins)
6. sp_configure 'allow updates',0
7. Restore database=primary.dump

Replication Server
-----------------
7. Create primary database definition and master database definition
8. Create replicate database subscription and replicate master database
    subscription. With Materialization Method = Bulk
9. Activate
10. Validate

All status= Valid

with this settings i have been replicate data with no problem or error at all , but the only error is where  client application create user. when i create user and

check syslogins table in master database compare it between primary and replicate database there is a difference in suid example:

create user
user id: newuser
pass   :newuser

Primary database
----------------
suid     name
1         sa
2         probe
3         user1
4         user2
7         user3
8         user4
9         newuser

replicate database
----------------
suid     name
1         sa
2         probe
3         user1
4         user2
5         newuser
7         user3
8         user4


you can see in primary database newuser login  became  suid number 9 but in replicate database newuser login became suid number 5.

what im ask here , is there something wrong with my step or something must to add, remove with my step or the whole idea to copy login to replicate database is wrong ?

can someone help me, thanks before and sorry for my bad english

thanks
 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close