I connected to MS SQL Server Express edition using the url jdbc: sqlserver://localhost\SQLEXPRESS:1443;DatabaseName=mydb;SelectMethod=cursor . There were some changes that had to be done: download another jdbc driver and copy it to drivers directory ( in combo then select: com.microsoft.sqlserver.jdbc.SQLServerDriver); use sql authentication not windows one; enable tcp/ip protocol and configure port to 1443. This is some stuff I remember now, maybe I did others as well. Maybe these can give you a clue about what to do ?
lvostinar:
I connected to MS SQL Server Express edition using the url jdbc: sqlserver://localhost\SQLEXPRESS:1443;DatabaseName=mydb;SelectMethod=cursor . There were some changes that had to be done: download another jdbc driver and copy it to drivers directory ( in combo then select: com.microsoft.sqlserver.jdbc.SQLServerDriver); use sql authentication not windows one; enable tcp/ip protocol and configure port to 1443. This is some stuff I remember now, maybe I did others as well. Maybe these can give you a clue about what to do ?
Vostinar - thanks for that feedback
I’m using windows authentication at the moment - but since the sql server is not running on the same PC I cant use localhost to connect. I think thats the problem.
Ok, I tried with jtds driver in 4.0 and it was working using the url: jdbc:jtds:sqlserver://LAU:1443/mydb . Port is configured to 1443 ( not dynamic); TCP/IP enabled and sql authentication.
lvostinar:
Ok, I tried with jtds driver in 4.0 and it was working using the url: jdbc:jtds:sqlserver://LAU:1443/mydb . Port is configured to 1443 ( not dynamic); TCP/IP enabled and sql authentication.
Lau is the name of the computer ( which is actually localhost); the catch was that SQLEXPRESS is not needed in the url even if i have sql server express 2005 , until I removed that string, it didn’t work. Also I think that sql authentication must be used ( if windows authentication a dll must be in the system path).
lvostinar:
Lau is the name of the computer ( which is actually localhost); the catch was that SQLEXPRESS is not needed in the url even if i have sql server express 2005 , until I removed that string, it didn’t work. Also I think that sql authentication must be used ( if windows authentication a dll must be in the system path).
Ivostinar - thanks for all the feedback - still couldn’t get comm’s over the network - so for experimental purposes - I installed Servoy on the same PC as the SQL SERVER and got up and running instantly.
I still need to work on getting networked access from Servoy but that can come later. At least I can start developing with a production-database ‘copy’ now and see what we can generate!