I’m baffled here…
I have a server running Lucee 4.5.2.018 final
It currently has a working mssql2008 data connection to
*\dataserver\Instance1 aDB *
using a sql user (cfuser) & pwd on a non standard port
I recently applied 2.018
I am now trying to set up a connection to
- \dataserver\Instance2 anotherDB *
using a the same user/pwd scheme
However when I try to create the dsn in Lucee I get
Cannot open database “mydata” requested by the login. The login failed.
ClientConnectionId:
server\instanceName, Uname, passwords, ports, firewall are correct.
\dataserver\Instance2 anotherDB IS accessible from my ACF8 instance
even the copy & paste window seems to be correct
connectionString:
‘jdbc:sqlserver://dataserver\instance2:XXXX;DATABASENAME=mydata;sendStringParametersAsUnicode=true;SelectMethod=direct’
, username: ‘cfuser’ , password:
Looking at the application log on the server I see the following error
*Login failed for user ‘cfuser’. Reason: Failed to open the explicitly
specified database ‘mydata’. *
however the error source shows it’s coming from MSSQL$Instance1 not MSSQL$
Instance2
Nowhere in the new data source set up am I specifying Instance1 and yet it
seems Lucee is trying to connect to it. There is no DB named mydata in
instance1 which is the source of the error.
It seems that it’s only taking the instance that was already set up and
ignoring new instance connections.
Am I just being an idiot or is this a bug?