ColdFusion Datasource Connection Errors as Usual
Hi All,
Running ColdFusion 2023 on Windows Pro 11.
MSSQL 2022 server installed.
Does CF "REQUIRE" jdbc driver to connect to SQL server or is it only an option? If it's required CF should clearly state that.
I know I've dealt with this before, but can't remember how I fixed it.
I downloaded the jar file for it ( mssql-jdbc-12.4.1.jre8.jar ) and put it in the lib folder in coldfusion. Still no go.
I don't see it listed as a driver when creating the datasource.
I did restart CF and SQL server afterwards.
I'm logging into SQL server using Windows authentication. I don't recall seeing a choice during installation to do it any other way.
Web searches suggesting:
1. make sure TCP/IP is enabled: Yes, did that.
2. Get jdbc driver: Yes, did that. Put in CF lib folder.
3. Add "AuthenticationMethod=ntlm" in the advanced settings Connection String CF settings: Did that.
4. Tried putting servername/username in that didn't help.
Still not working. Head is spinning at this point.
Most recent error:
"Connection verification failed for data source: Test
java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver][SQLServer]Cannot open database "Locations" requested by the login. The login failed."
If I select the MSSQL driver I get:
"Connection verification failed for data source: Test
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Kerberos Authentication is not supported by this SQLServer. The driver attempted Kerberos authentication because the AuthenticationMethod connect option was "auto" and no username/password was specified."
Can anyone please point me to good documentation or offer suggestions on how to fix this?
Thanks!
Laura
