Skip to main content
September 17, 2008
Question

Help with SQL Server 2005 DataSource

  • September 17, 2008
  • 3 replies
  • 552 views
Hello,

I have a MS SQL Server 2005 database that uses my Windows Authenication credentials for logon. When I go to setup the DataSource within the ColdFusion Administrator, I receive an error after entering in the Database name and Server name. I leave the Username and Password field blank due to the Windows Authentication, and it still fails. I have tried also to input my Windows credentials into the username and password field to no avail. I have also double checked the port and it is correct.

Hopefully I can get some assisstence with this issue or provide any additional information for those responding.

Thank you.
    This topic has been closed for replies.

    3 replies

    Charlie Arehart
    Community Expert
    Community Expert
    September 24, 2008
    Kent, I see that many others have reported that error (doing a google search), but I see no ready answers. I saw something that reminded me of a connection string value that I've seen answer some problems. May be worth a shot for you: try adding this string to the connection string (in "advanced options") for your datasource:

    AuthenticationMethod=Type2

    If it doesn't solve it, remove it. But keep it handy in case it ever may help with some other problem.

    Here's one other possible answer for you:

    http://www.webmasterkb.com/Uwe/Forum.aspx/coldfusion-server/3206/SQL-Server-2000-Windows-Auth

    Sorry I can't be more clear for you.
    /Charlie (troubleshooter, carehart. org)
    September 26, 2008
    Thanks for the input guys, I managed to get the Database Admin to give me a seperate SQL Server login instead of using the windows authenication method.
    September 19, 2008
    Thank you for the response. This is the error I receive:

    Connection verification failed for data source: RMT
    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

    I will look over the site you provided and see if I can check the SQL Server Databases settings with the admin. Any other thoughts/suggestions on this error would be much appreciated.

    Thank you.
    Charlie Arehart
    Community Expert
    Community Expert
    September 18, 2008
    Are you successfully connecting from CF to that SQL Server already (other datasources working)? If not, then it may be that you can't connect to SQL Server at all. You haven't offered the error you got. What is it?

    Here's one possible error that a lot of folks get, with solutions:

    http://carehart.org/blog/client/index.cfm/2006/7/8/sql2k5_Error_establishing_socket

    It's the most visited of all blog entries I've ever done, so it seems to be something that many are pointed to.

    If that's not it, please report what your error is.
    /Charlie (troubleshooter, carehart. org)