Connecting using SQL Server driver
Error in .jcall(drv@jdrv, “Ljava/sql/Connection;”, “connect”,
as.character(url)[1], :
java.sql.SQLException: Login failed for user ‘vhaNN\vhaslcxxx’.
But if I directly use RJDBC based on JTDS drive, it works!
We know that “DatabaseConnector” is a wrapper of RJDBC. My Question is
what java driver is under the module "DatabaseConnector² and do we need to
do some configuration work to make “DatabaseConnector” work?
In connections using integrated security, DatabaseConnector uses sqljdbc4 and otherwise falls back to jtds. There may be a bug here because it expects domain and username to be separated by “/” whereas I think Windows violates convention and typically uses “”. Can you please try using user=“vhaNN/vhaslcxxx” and report back the outcome?
it works now after I use “/” but it is true windows use “” as domain separator. Might we need to add a parameter specially for domain to avoid this error in the next version?
I just added the domain parameter. Specifying the domain in the user argument will now throw a (hopefully) meaningful error. So now you should be able to connect with: