Ask a Question related to Coldfusion Database Access, Design and Development.
-
redtopia #1
jTDS and CFMX 6.1 Installation?
I'm wondering if someone can help me install jTDS into my CFMX 6.1 world.
I copied the jtds-1.2.jar file to the C:\CFusionMX\lib directory.
In the Administrator, I created a new "other" datasource using this JDBC URL:
jdbc:jtds:sqlserver://127.0.0.1:2195\SQLEXPRESS/TVRCampSQL;useLOBs=false
I set the driver class to: (**** I think this is the problem ****)
net.sourceforge.jtds.jdbc.Driver
I set the driver name to:
jtds-1.2.jar
And I entered the username/password for the database in the username and
password fields of the driver dialog.
However, I get the following error:
Connection verification failed for data source: test2
[]java.sql.SQLException: No suitable driver available for test2, please check
the driver setting in resources file, error: net.sourceforge.jtds.jdbc.Driver
The root cause was that: java.sql.SQLException: No suitable driver available
for test2, please check the driver setting in resources file, error:
net.sourceforge.jtds.jdbc.Driver
redtopia Guest
-
CFMX 7.0.2 installation
We have been working on Coldfusion MX 7.X migration, I took the latest version of .exe file from the macromedia website and installed. Installation... -
Datasource setting when using jTDS 1.2 with CFMX 7 andSQL2000 (sp4)
I am trying to get the jTDS 1.2 driver working on CFMX 7 and SQL 2000 (SP4). Here is what I did: - stopped CFMX service - copied jTDS-1.2.jar to... -
jTDS JDBC drivers with CFMX 7 Enterprise
We are using CFMX Enterprise 7.0.1 (multi-server install) and SQL Server 2000 SP4 (NT Auth only), each on dedicated servers (in the same domain). ... -
CFMX 7.0 Installation
We're starting with a clean machine--MS 2003 OS, and rather than recreating the CF 4.5.1 enviornment, migrating the applications, et cetera, then... -
Help - Can't complete CFMX 7 Installation
I cannot get CFMX 7 to work after installation. I'm running: Windows XP Pro IIS 5.1 Before installing I turned of my anti-virus program... -
PaulH **AdobeCommunityExpert** #2
Re: jTDS and CFMX 6.1 Installation?
redtopia wrote:
jdbc:jtds:<server_type>://<server>[:<port>][/<database>][;<property>=<value>[;...]]> jdbc:jtds:sqlserver://127.0.0.1:2195\SQLEXPRESS/TVRCampSQL;useLOBs=false
wrong slash, what's SQLEXPRESS, an instance? if so you have to split that off as
a property (instance=SQLEXPRESS). also i *think* the user & password are required.
that looks right.> I set the driver class to: (**** I think this is the problem ****)
>
> net.sourceforge.jtds.jdbc.Driver
that looks wrong (though it might not matter), try> I set the driver name to:
>
> jtds-1.2.jar
net.sourceforge.jtds.jdbc.Driver & see what happens.
finally, did you stop/restart the cf server after you copied in the driver jar?
PaulH **AdobeCommunityExpert** Guest
-
redtopia #3
Re: jTDS and CFMX 6.1 Installation?
Thank you so much! I restarted the CFMX service and was able to connect to the
driver.
My connection string is now:
jdbc:jtds:sqlserver://REDWING:1433/TVRCampSQL;user=tvrcamp;password=test123;useL
OBs=false;
Initially, I was getting network connection errors, but after tweeking the
connection string, I was finally able to get the driver to attempt to login,
which of course is failing. I've got the username and password correct, but the
driver still tells me that the login is failing:
Connection verification failed for data source: test
[]java.sql.SQLException: Login failed for user 'tvrcamp'.
The root cause was that: java.sql.SQLException: Login failed for user
'tvrcamp'.
Could this still be related to the network connection? Or what else could be
giving me this error?
Thanks in advance!
redtopia Guest
-
PaulH *ACE* #4
Re: jTDS and CFMX 6.1 Installation?
redtopia wrote:
that user an sql server user which has permissions to that db? jTDS can> which of course is failing. I've got the username and password correct, but the
> driver still tells me that the login is failing:
>
> Connection verification failed for data source: test
> []java.sql.SQLException: Login failed for user 'tvrcamp'.
> The root cause was that: java.sql.SQLException: Login failed for user
> 'tvrcamp'.
do windows authentication but i don't recall how.
PaulH *ACE* Guest
-
redtopia #5
Re: jTDS and CFMX 6.1 Installation?
I'm using SQL authentication, not NT.
I have another DSN using the ODBC Socket, that is going to the same
db/username/password, and it works fine. But I found a bug in that driver where
ntext fields are not being returned unless they are the last rows in the table,
or you explicity ask for them by name in the query. So I am trying to replace
my connections using the jtds drivers.
I have a feeling the login error is not really telling the full story. I know
the username/password is correct, and I know that I can connect to the db using
the ODBC Socket, though I have not been successful at connecting to the db
using the built-in SQL Server driver. It probably has something to do with the
port/instance. It seems like I should somehow set the instance name
"SQLEXPRESS," but when I do this, I get another error:
# Connection verification failed for data source: test
[]java.sql.SQLException: Server 127.0.0.1 has no instance named SQLEXPRESS.
The root cause was that: java.sql.SQLException: Server 127.0.0.1has no
instance named SQLEXPRESS.
redtopia Guest
-
redtopia #6
Re: jTDS and CFMX 6.1 Installation?
OK, I tweeked the settings in the SQL Server Configuration program and turned
on the TCP/IP connection in the Protocols for SQLEXPRESS. I setup the localhost
IP address (127.0.01) to listen to port 2195. I changed my connection string to:
jdbc:jtds:sqlserver://127.0.0.1:2195/TVRCampSQL;user=tvrcamp;password=testing123
;useLOBs=false;instance=SQLEXPRESS;
and I'm now getting the error:
Connection verification failed for data source: test
[]java.sql.SQLException: Cannot open database "TVRCampSQL" requested by the
login. The login failed.
The root cause was that: java.sql.SQLException: Cannot open database
"TVRCampSQL" requested by the login. The login failed.
I wonder why it can't open the database? FYI: That login (in SQL Server) is
setup to open TVRCampSQL by default.
redtopia Guest
-
redtopia #7
Re: jTDS and CFMX 6.1 Installation?
Whoops... I had the database name wrong.
I got it working now. Thanks so much for your help!
redtopia Guest



Reply With Quote

