Solved

remote logins for proxy table in sybase

Posted on 2016-10-11
5
36 Views
Last Modified: 2016-10-11
Dears, kindly note I have created an external login and a remote login as following: sp_addremotelogin remoteserver,locallogin1, remotelogin1 sp_addexternallogin remoteserver,locallogin1, remotelogin1

and I log in by user locallogin1 to the localserver to the database localdb and try to create proxy table from remotedb1 on remoteserver but still get the login failed error, any body know why??

kindly note there is localuser1 aliased to locallogin1 , i.e there is no user 'locallogin1' (direct mapping) on the database localdb where I try to create proxy table, rather there is a user localuser1 is alias to locallogin1, is this related to the problem??

please advice
0
Comment
Question by:suzn cas
  • 3
  • 2
5 Comments
 
LVL 24

Expert Comment

by:Joe Woodhouse
ID: 41839499
Have you added remoteserver using sp_addserver?

Does the server name you used in sp_addserver exactly the same as its name in your local interfaces file?

Is the password for locallogin1 on localserver the same as the password for remotelogin1 on remoteserver?

Can you log in directly to remoteserver using remotelogin1 and that password?

I don't believe the alias will matter because if your error is a login error, you haven't gotten as far as databases, users or aliases yet. Can you share the exact error message?
0
 

Author Comment

by:suzn cas
ID: 41839542
Dear Joe, Thanks alot,
Is the password for locallogin1 on localserver the same as the password for remotelogin1 on remoteserver?
NO, it is not.they are different logins name with different passwords.

for example: the locallogin1 = suzn with password = 123 , and the remotelogin1 = rami with password 'rami',
is this the case?? so what can I do, create a local login at remote server with = (login name = suzn with password = 123), then may locallogin at local server (uzn with password = 123) with him ??????
0
 
LVL 24

Accepted Solution

by:
Joe Woodhouse earned 500 total points
ID: 41839545
Passwords are your problem. When you use sp_addremotelogin and sp_addexternlogin, you can specify what the remote password is. It looks like you haven't done that. It's simple, add it as one more parameter:

exec sp_addexternlogin [remoteserver], [locallogin], [remotelogin], [remotepassword]
go

Open in new window

1
 

Author Comment

by:suzn cas
ID: 41839566
Dear Joe, Thanks in advance.
I add remote password to the sp_addexternallogin and every thing is well.
Thank you
0
 

Author Closing Comment

by:suzn cas
ID: 41839572
when the passwords for local login and remote login are not tha same , we should add remotepassword as:

exec sp_addexternlogin [remoteserver], [locallogin], [remotelogin], [remotepassword]

Thanks  Joe Woodhouse
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SyBase SQL Syntax 4 644
Alternative to ALTER in Sybase 1 394
HOW to reterive specific datetime values from sybase iq 4 1,856
Clean up a mailbox 5 153
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now