String connectionUrl = "jdbc:sqlserver://WALSER:1433 databaseName=MYSQLDATABASE user=walser/kyle password=brenna1020 " Ĭonnection con = DriverManager.getConnection(connectionUrl) I have also tried this way as well but kept getting a time out error: Class.forName(".SQLServerDriver") ![]() ![]() Public static void main(String args) throws SQLExceptionĬlass.forName("") Ĭonnection con = DriverManager.getConnection("jdbc:odbc:movie_archive_DSN") ĭata source name not found and no default driver specifiedĬan anyone offer advice on how to fix this error? Also tcp/ip is enabled and port set to 1433. I'm using driver for the connections and have created my dsn through the admin tools and this is the code I'm using: import java.sql.* I'm having some issues with the connection with Java and SQL 2008 Express.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |