简体   繁体   中英

Set up datasource in ColdFusion 9 for MSSQL

I am trying to set up a datasource to my database that is hosted by my hosting company. I am creating the datasource using ColdFusion Administrator 9. I called my hosting company and received all the necessary information to get things going. After inputting the necessary information I get a connection failure, something to the effect that it has timed out. I noticed that when the administrator page came up to create the datasource, the default port number was 1433. Is this common? I feel all the necessary information I inputted was correct( username, password, databasename, server, etc;). Can anyone offer any suggestions?

Here is the error: Connection verification failed for data source: cfhalloween java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket. Unknown host: s The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket. Unknown host: s

1433 is the port commonly used by SQL Server. That's likely correct.

Error establishing socket. Unknown host: s

This suggests you have the value s listed for server . Instead, this should be the hostname or IP address of the SQL Server as seen from the server running CF.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM