Lynn
2007-05-14 22:08:15 UTC
Hi,
I experienced a strange issue. The Ad Hoc Remote Query is enabled in a
server A. But, when I run openrowset and opendatasource in my client tool
with the following statement (SQL Server managment studio) after connect to
server A, I always get the error message -- "Msg 18456, Level 14, State 1,
Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'."
SELECT top 10 *
FROM OPENDATASOURCE(
'SQLNCLI',
'Data Source=servername;Trusted_Connection=yes;'
).sgdrssd.dbo.cut_attributes
So, I went to server A machine and run the same query in Management Studio,
I got the result from remote server.
Right after I run this same query in server A machine, I run the same query
in my client machine, I didn't get any error anymore and the same result set
is returned.
However, about 10 minutes after the query was run in the SQL server A
machine, I run the same query in my client machine again, the error message
"Login failed ..." appears again.
What's the issue here? Please advise ASAP. Tks.
I experienced a strange issue. The Ad Hoc Remote Query is enabled in a
server A. But, when I run openrowset and opendatasource in my client tool
with the following statement (SQL Server managment studio) after connect to
server A, I always get the error message -- "Msg 18456, Level 14, State 1,
Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'."
SELECT top 10 *
FROM OPENDATASOURCE(
'SQLNCLI',
'Data Source=servername;Trusted_Connection=yes;'
).sgdrssd.dbo.cut_attributes
So, I went to server A machine and run the same query in Management Studio,
I got the result from remote server.
Right after I run this same query in server A machine, I run the same query
in my client machine, I didn't get any error anymore and the same result set
is returned.
However, about 10 minutes after the query was run in the SQL server A
machine, I run the same query in my client machine again, the error message
"Login failed ..." appears again.
What's the issue here? Please advise ASAP. Tks.
--
Best Regards,
Lynn
Best Regards,
Lynn