Several users have wanted to know if ColdFusion supports SQL Server 2005. And the answer appears to be yes. I am using ColdFusion MX 7.01 with the default SQL Server driver, and am connected to SQL Server 2005, and so far so good. Microsoft does have a new SQL Server 2005 JDBC driver in beta, but thus far I have not installed it, and not needed to. All testing thus far has worked flawlessly, using basic statements as well as browsing tables and schemas via RDS.
The only two issues I ran into were minor configuration and security setting defaults that needed to be tweaked.
First of all, by default SQL Server 2005 has TCP/IP connections disabled. To enable TCP/IP support, use the SQL Server Configuration Manager tool, select SQL Server 2005 Network Configuration, select Protocols, double-click on TCP/IP, and turn on Enabled.
The next gotcha was the user account. I created a SQL Server user account for ColdFusion, but by default SQL Server 2005 only uses Windows Authentication (which is generally not how ColdFusion would authenticate). To enable support for SQL Server Authentication, right-click on the server in Microsoft SQL Server Management Studio, select Properties, Security, and set Server Authentication to SQL Server and Windows Authentication.
And that seems to do the trick.
I have a blog entry about CF & SQL Server 2005 Express.
http://www.demirkapi.net/avblog/index.cfm?mode=vie...
I think it would be helpful.
--- Ben
Noted at http://www.actcfug.com/index.cfm?fuseaction=TipVie...
Am in the middle of two CF projects so sticking to 2000 for now (a well known quantity after all these years, eh?)
Thanks for the advice however!
PT
I think this link would be helpful to the users as well
Thanks
http://www.microsoft.com/downloads/details.aspx?fa...
Ported to SQL 2005 and Cold Fusion (both load balanced) servers would have every 10-15 min, without any changes to the database, system settings etc. Just SQL 2005.
After a painful day of troubleshooting while in production, it turns out one of our tables needed to have indexes added.
After that the problems went away. Again, this was never an issue in 2000.
It appears there is either a bug in 2005 or some alternate way it processes queries.
Just want to make sure no body gets stung with this same issue.
Drop the jar file in the cfmx lib directory?
Connection verification failed for data source: Test
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user 'ed'.
The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user 'ed'.
Both the SQL server express and CF are installed on the same machine and I have created a user cfserver with pw cfserver to run the SQL server but I cannot connect to it and setup the dsn. Any ideas. I have set the TCP/IP and the authentication to windows/server.
http://www.robisen.com/index.cfm/2006/6/2/ColdFusi...
I'm guessing JDBC can handle both 32 and 64 bit platforms, but I haven't found out for sure yet, this should be invisible to the client.
"Connection verification failed for data source: users
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Could not establish a connection using integrated security: No LoginModules configured for JDBC_DRIVER_01
The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Could not establish a connection using integrated security: No LoginModules configured for JDBC_DRIVER_01" plz help.
Seems just the JRun is having a problem using CF 7.0.1. Wierd error to see Login failed for user.
I'm downloading updater2 now to update to 7.0.2. But would still like to know if you've resolved this and how. I can connect to the SQL 2k5s running 32 bit OS's but not the 64 bit OS.
So ODBC, Mgmt Studio, even a java class could authenticate with the long userid, but CFMX 7.0.2 won't. JRE 1.4.2
We even tried installing the newest Microsoft JDBC driver ( type 4 ) for SQL Server 2k5, no joy.
Well, maybe this will save someone else two days of frustrating diagnosis, lol.
--- Ben
Any suggestion on how to get the data sources to work?
The datasource verifies in CF Admin.
--- Ben
Another subject: I cannot seem to find any refernece to a MySQL connection in the CFAdmin
ODBC configuration. What am I missing?
Thanks.
--- Ben
Or is it simply as easy as I'm reading on this page? Nobody mentioned what version of SQL 2005 they were running.
--- Ben
--- Ben
I'm running vista, sql 2005 express and cf 8 devleopers edition.
Heres the error:
* Connection verification failed for data source: TestDB
An exception occurred when executing method verifydatasource.
The cause of this exception was that: coldfusion.sql.Executive$ConnectionVerificationFailedException: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver][Macromedia][SQLServer JDBC Driver]The requested instance is either invalid or not running..
SQLCritUpdPkg_ENU
What does this mean?...
Here's what I tried so far to resolve this:
1. enabled tcp/ip in sql config manager, verfied that it's using port 1433 in IPALL
2. telnet 127.0.0.1 1433 - that works ok
3. dowloaded SQLCritUpdPkg_ENU.exe and installed it - I read on a fourm somewhere that this disabled some ports due to a worm.. but i dont think that was the problem anyway since i ping'd 1433 and it was ok
4. And yes I've logged in directly to SQL server using the u/p..
and I've changed the security settings in SQL to use both sql server and windows authenticaion
Any help from anyone would be awesome..
PS: I've also gotten this same error when I had CFMX 7 installed...
Having read some of these posts, I tried configuring our DB server with a shorter password and eventually a blank password temporarily and this worked. After some more investigation, I discovered that using the pound sign was causing all our problems. It appears that this character gets translated along the line and the correct password fails to be sent to the SQL Server.
I am using Coldfusion 7 with Microsoft SQL Server 2005 express on my laptop. Everything seems to be working fine except, when I try to do an update or insert, nothing happens. I do not get an error, but at the same time nothing gets inserted or updated in the database. When I place that same code (SQL and Coldfusion) on a production server everything works fine. I recently upgraded my ram on the laptop to 2 Gig, thinking it may be a memory problem, but nothing changed.
Please help, I'm at my wits end here.
--- Ben
We're on CFMX 7.02, windows 2003 web edition, apache 2.0.58. We've had endless problems with cpu saturation in Sql Server 2005 -- even after completely upgrading hardware and grabbing latest OS and SQL patches, the problem has returned. We've been fighting this from different angles, adjusting cfqueries and making sure DB config is optimal for our environment.
I came across the kb article here:
http://www.adobe.com/go/42dcb10a
And thinking about applying this latest version of the datadirect drivers for cfmx7. What caught my eye was the statement:
61161 - Insert trigger causes CPU to spike to 100% using the 3.4/3.5 drivers.
Comments? What is the official answer on CFMX7 and SQL Server 2005.. is 2005 supported?
We're already down that road so too late for us, curious if you guys agree with trying out these latest JDBC drivers first before trying Coldfusion 8. Thx. -Steve
1. If you are using a secondary MSSQL instance, the default listening port (1433) is not enabled. You must go to the SQL configuration utility to configure a static port. This port must be different from the listening port on the primary SQL instance. If the ports are the same, the second instance will not start.
2. Chen configuring the CF server field, if you are using a secondary SQL instance, you will need to use the format <server>\<instance name>. If you are missing a hosts file entry for the SQL server on the unix side, you will have to use the IP.