Solved

SQL Server to SQL Server connection

Posted on 2009-07-13
4
243 Views
Last Modified: 2013-12-05
I am trying to update data in sql server Y (SQL 2000 on Win 2000) from a stored procedure in sql server X (SQL 2005 on Win 2003).

I am NOT running active directory.

When the procedure runs, or for that matter when I issue a simple select statement from server X such as select * from Y.database.dbo.table I get the dreaded   'Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.'

Both servers use windows and sql security.

Anyone have any ideas?  Thanks.
0
Comment
Question by:dspace
4 Comments
 
LVL 31

Accepted Solution

by:
RiteshShah earned 250 total points
ID: 24839879
are both server stands in same network? if yes, have you set up linked server? if no, do it now than proceed further.
0
 
LVL 7

Expert Comment

by:aboredman
ID: 24839884
SQL Errors usually have a number associated with them. Try to google that number along with "SQL Error" and, in my experience, the solution is usually pretty easy to find.

Good luck
0
 
LVL 17

Assisted Solution

by:pssandhu
pssandhu earned 250 total points
ID: 24839971
If you have set up a linked server and still getting the error then the quickest way to solve would be to edit the login information in the linked server settings and explicitly provide a valid sql server login (username and password) and save the changes.
P.
0
 

Author Closing Comment

by:dspace
ID: 31602830
Linked server login was the problem.  Thanks!
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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