Hi,
You are getting this error because in your database server the OpenRowset and the OpenDatasource statements the turned off.
to Turn on this statements follow the below steps.
1. Login as a Administrator in your sqlserver
2. Run the Procedure sp_configure
3. You can see 'show advanced options' in the list with run_value "0" in your resultset.
4. Now you have to change 'show advanced options' run_value to 1 for enabling,Run the below Query
sp_configure 'Show advanced options' , 1
reconfigure
5. After run this query sucessfully, you have to check the 'Ad Hoc Distributed Queries' run_value, if its 0 change it into 1 by run the below query
sp_configure 'Ad Hoc Distributed Queries' , 1
reconfigure
finally u can check the values changed to 1 for 'Ad Hoc Distributed Queries' and 'show advanced options'.
Now you can open the OpenRowset/OpenDatasource in your Database server.
Hope it helps you.
Thanks & Regards
Suyambu