I am trying to connect to a server instance of SQL Server 2010 that I installed recently using NetBeans. I have downloaded the latest JDBC driver for MS SQL Server, but I cannot get the right connection string to connect to this database. I think I am missing the following values in the connection:
- Port
- Instance Name
- and I am not sure if my username should be /*** or only the name that appears after the /
‘jdbc:sqlserver://’
Any help appreciated,
Ted
This should help:
http://netbeans.org/kb/docs/java/gui-db.html
Edit: As per comment below this was for derby stuff. Here is a more useful link but it’s not got any information on supplying the DB username or password. It might be enough depending on your exact requirement.