Getting following error if i create an OLE DB soruce to remote DB
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 2, Level 16, State 1, Line 0
Named Pipes Provider: Could not open a connection to SQL Server .
If i remove the OPENROWSET it works fine.
Is there any alternate to OPENROWSET, which will eventually remove the problem of "Ad-Hoc Remote Queries"
How to fix the above error ?