Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Login failed for user '(null)'...
There are two computers, PC1 and PC2. On PC1 I started QueryAnalyzer and
selected a database on PC2 using Windows authentication and executed the
following query:

select * from PC1.Database1.dbo.Table1

I got this error:

Server: Msg 18452, Level 14, State 1, Line 2
Login failed for user '(null)'. Reason: Not associated with a trusted
SQL Server connection.

Both servers are set to mixed mode authentication and both are linked
using sp_addlinkedserver. Does anybody have a solution to this issue?

--
Best regards,
Vladimir.

Report this thread to moderator Post Follow-up to this message
Old Post
Vladimir Svrkota
12-13-06 12:12 AM


Re: Login failed for user '(null)'...
Vova
When you created linked  server what is the login do you specify?


"Vladimir Svrkota" <see@reply.to> wrote in message
news:1o1fojctigtr3.dlg@vladimir.svrkota...
> There are two computers, PC1 and PC2. On PC1 I started QueryAnalyzer and
> selected a database on PC2 using Windows authentication and executed the
> following query:
>
> select * from PC1.Database1.dbo.Table1
>
> I got this error:
>
> Server: Msg 18452, Level 14, State 1, Line 2
> Login failed for user '(null)'. Reason: Not associated with a trusted
> SQL Server connection.
>
> Both servers are set to mixed mode authentication and both are linked
> using sp_addlinkedserver. Does anybody have a solution to this issue?
>
> --
> Best regards,
> Vladimir.



Report this thread to moderator Post Follow-up to this message
Old Post
Uri Dimant
12-13-06 10:18 AM


Re: Login failed for user '(null)'...
Vladimir Svrkota  wrote:
> There are two computers, PC1 and PC2. On PC1 I started QueryAnalyzer and
> selected a database on PC2 using Windows authentication and executed the
> following query:
>
> select * from PC1.Database1.dbo.Table1
>
> I got this error:
>
> Server: Msg 18452, Level 14, State 1, Line 2
> Login failed for user '(null)'. Reason: Not associated with a trusted
> SQL Server connection.
>
> Both servers are set to mixed mode authentication and both are linked
> using sp_addlinkedserver. Does anybody have a solution to this issue?
>

Hi

You most likely need to specify a login that can access the remote
server. If you don't specify anything, the server will try to connect
using your NT login which requires that the both servers is set to
delegation.
Try to look up  sp_addlinkedsrvlogin
 in BOL - that will give you more info.

--
Regards
Steen Schlüter Persson
Database Administrator / System Administrator

Report this thread to moderator Post Follow-up to this message
Old Post
DK
12-14-06 12:12 AM


Re: Login failed for user '(null)'...
"Steen Schlüter Persson (DK)" wrote:

> Try to look up  sp_addlinkedsrvlogin
 in BOL - that will give you more info.

Thanks. I'll take a look.

--
Best regards,
Vladimir.

Report this thread to moderator Post Follow-up to this message
Old Post
Vladimir Svrkota
12-14-06 12:12 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 09:07 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006