MySQL Forums
Forum List  »  Newbie

Re: how can i open sql database
Posted by: Aljaz Cink
Date: July 18, 2005 03:08AM

i had to edit the code.now it looks like this:
String serverName = "ip_number";
String portNumber = "1433";
String mydatabase = serverName + ":" + portNumber;
String databaseName = "dbname";
String url = "jdbc:sqlserver://" + mydatabase +";databaseName="+databaseName+";";
Connection connection = DriverManager.getConnection(url,"usr","pwd");

and now i have to compare if the username and password match...can u give me a hint?

Options: ReplyQuote


Subject
Written By
Posted
July 14, 2005 05:51AM
Re: how can i open sql database
July 18, 2005 03:08AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.