Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Rekonn
Starting Member
7 Posts |
Posted - 2007-01-12 : 12:22:32
|
| We're beginning to upgrade some of our servers to 2005, and I've come across a problem with an openrowset statement that used to work in 2000.select * from openrowset('SQLOLEDB' , 'SERVER=TargetServer,3180;uid=dim_usr;pwd=dim_usr@1' , 'set fmtonly off exec msdb..sp_help_job ')The TargetServer is running 2000. When the code is run on another 2000 machine, it works as expected. But when the exact same code is run on a 2005 machine, it gives this error:OLE DB provider "SQLNCLI" for linked server "(null)" returned message "Login timeout expired".OLE DB provider "SQLNCLI" for linked server "(null)" returned message "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".Msg 11001, Level 16, State 1, Line 0TCP Provider: No such host is known.On the 2005 machine that ran the openrowset statement, I was able to ping the TargetServer, so I don't know why it's not being seen. Please help. |
|
|
Vinnie881
Master Smack Fu Yak Hacker
1231 Posts |
Posted - 2007-01-12 : 12:51:07
|
| I'll throw out the obvious check first. By default sql 2005 installs not allowing any type of connection besides the local machine. Check underStart/SQL Server 2005/ConfigurationTools/SQL Server Configuration ManagerMake sure under theSQL Server 2005 Network Configuration that you have enabled the proper protocals to enable connection. Ny default all these will be disabled.Also do the same underSQL Native Client Configuration/ClientProtocals |
 |
|
|
jezemine
Master Smack Fu Yak Hacker
2886 Posts |
Posted - 2007-01-12 : 13:41:43
|
this may help:http://msdn2.microsoft.com/en-us/library/ms188313.aspxdid you create a linked server to TargetServer? if you didn't I think you have to change the settings for "DisallowAdhocAccess" and "Ad Hoc Distributed Queries" www.elsasoft.org |
 |
|
|
Rekonn
Starting Member
7 Posts |
Posted - 2007-01-12 : 15:22:17
|
| Thanks for the replies, I'm new to 2005 and still don't know where to find things, so if I'm off let me know. In the Configuration Manager, I checked on the Network Configuration and Client Protocols, and they showed the same thing:Shared Memory - EnabledTCP/IP - EnabledNamed Pipes - EnabledVIA - DisabledThere is no linked server, so I started the Surface Area Configuration tool, clicked Surface Area for Features, and found the Ad Hoc Remote Queries option. It is enabled.Where can I find the DisallowAdhocAccess option? |
 |
|
|
jezemine
Master Smack Fu Yak Hacker
2886 Posts |
|
|
|
|
|
|
|