Ask a Question related to Coldfusion Server Administration, Design and Development.
-
jjay@aus #1
CFMX7 and Local SQL Server Connections
I recently upgraded from CF5 to CFMX7. All went well, but I am now not able
to access SQL Server DBs on the local Machine.
When I Verify the Datasource via CF Admin, I am getting the following error.
Connection verification failed for data source: lo_db_laptop
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]Error establishing
socket. Connection refused: connect
The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver]Error establishing socket. Connection refused: connect
These Datasources were working fine in CF5, and have not been changed since
migration.
Has anyone experienced similar issues? Any suggestions as to what may be
causing this?
Many Thanks in advance
jjay@aus Guest
-
connections to demo site on local PC
dumb question perhaps but here goes... if I want to create a website as a demo - so its built locally on my PC - and I want to showcase Contribute... -
script disable/enable local area connections
I need to be able to prevent access to cable modem internet during a specific time frame. PC connects directly to cable modem and runs winXPpro. I... -
Can't use 'local' to find sql server instances on local machine
My computer (connected to a domain) is having trouble connecting to the local MSDE when using 'local' or '(local)' as server name. The only way I... -
Setting vsftpd to only allow local connections...
"Sam Nichols" <sizam@inerd.net> wrote in message news:sizam-6C5DF4.10414926062003@news.stanford.edu... processes the users, you you use the... -
(SERVER=SHARED) connections work but (SERVER=DEDICATED) does not
All, Were running V8.1.7.4 of the database on HP-UX 11.11 I have a database setup to use MTS. The following MTS parameters are set in the... -
dimaint #2
Re: CFMX7 and Local SQL Server Connections
What happens if you try using ODBC socket to connect to the database? Same way
was used in CF5. Create System DSN first and then use it in datasource
settings. It'd be interesting to see if that works.
Alos, are you specifying username/password when creating datasources? Is your
database configured for SQL Server authentication only or both SQL Server and
Windows?
dimaint Guest
-
jjay@aus #3
Re: CFMX7 and Local SQL Server Connections
Hi dimaint, thanks for your reply.
The datasources are created via ODBC Administrator as a System DSN. They are
working fine via ODBC Data Source Administrator. And they were fine via CF5
before upgrading to MX7.
This is the case for Datasources that existed prior to upgrade, as well as any
created post upgrade.
I'm not specifying the username and password when creating or connecting to
the Data Sources. Datasources are configured with Windows Authentication.
Thanks again
jjay@aus Guest
-
dimaint #4
Re: CFMX7 and Local SQL Server Connections
Have you tried using Microsoft SQL Server JDBC drivers? When creating datasource, try to select Microsoft SQL Server from dropdown list of datasource types.
dimaint Guest
-
jjay@aus #5
Re: CFMX7 and Local SQL Server Connections
If you mean have I tried creating a DSN via the Cold Fusion Administrator, then
yes I have, but still getting "Connection refused".
As a side point. Any Access Datasources I had setup are working fine. It is
just with SQL Server.
jjay@aus Guest
-
dimaint #6
Re: CFMX7 and Local SQL Server Connections
You might want to specify username/password when creating SQL Server DSN in CF
Admin. Either username/password for specific domain user that has privilegies
or if you have mixed authentication and specific SQL Server user, then use that
user.
dimaint Guest
-
jjay@aus #7
Re: CFMX7 and Local SQL Server Connections
I managed to connect using an ODBC Socket, and that has got me connected fine
for now. Will try connecting with UN&PW in future.
I'm still keen to know though why these DSNs wouldn't work, so if anyone has
any suggestions would love to hear them.
Thanks for your help dimaint.
jjay@aus Guest
-
ksmith #8
Re: CFMX7 and Local SQL Server Connections
Review your odbc datasource in windows control panel. As you go thru to edit
the DSN, I believe the 2nd page of the dialog will offer a 'client' button.
Click and determine what client libraries are used. You likely will find it is
a connection VIA pipes. JDBC connections require a TCPIP connection. You will
need to update the mssql server to allow TCPIP, if that is the case.
You should then be able to connect with jdbc.
ksmith Guest
-
jjay@aus #9
Re: CFMX7 and Local SQL Server Connections
Thanks for the suggestion Ken,
Network libraries were already set to TCP/IP.
Any more ideas?
Thanks
jjay@aus Guest
-
ksmith #10
Re: CFMX7 and Local SQL Server Connections
First what version of mssql are you running?
Next, create a test DSN using mssql/jdbc. Do not worry if it does not
validate yet. Next create a simple test query using that datasource. "Select
* from foo" is fine. What error does it return? Often the error from a query
is much better than info given in cfadmin.
ksmith Guest



Reply With Quote

