I have a MS SQL Server Database in house (but on a different network) that I am trying to connect to via cold fusion. However I keep getting this error: “Datasource could not be found.”
- Remote connections are enabled including tcpip.
- Account name is correct. I can log in via test without any problems.
Here is my code:
<cfquery
name="getIT"
datasource="RemoteServerName_OR_ipAddress.DATABASE_NAME.dbo"
username="test"
password="test"
>
It looks like you need to set up the datasource in the Coldfusion Administrator.
http://www.quackit.com/coldfusion/tutorial/coldfusion_datasource.cfm