I'm trying to connect to my existing SQL Express database, but I can't seem to figure out how to create the persistence unit in Netbeans.
Currently, when I try to create a persistence unit, I select "New Database connection". I select a Derby JAR as driver, then I have to enter the database, username and password to generate a JDBC url. The database doesn't have a username or password.
I think this is my database: .\sqlexpress;Database=MyDatabase.
But somehow whenever I click "Test Connection", it fails. I have no idea what I'm doing wrong. Am I missing something obvious in the database string?
.\sqlexpressis not a valid JDBC url for SQL Server). - Mark Rotteveel