Skip to Content.
Sympa Menu

freetds - SQLException: security.Couldn't connect to 'MSSQL7_SERVERNAME' with origin from ''.

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Deniz TATAR" <deniz_tatar AT yahoo.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: SQLException: security.Couldn't connect to 'MSSQL7_SERVERNAME' with origin from ''.
  • Date: Tue, 3 Oct 2000 01:20:46 -0400


Hi all,
I use FreeTDS @version $Id: Driver.java,v 1.10 1999/02/22
I will send a small code that I want to try to connect MSSQL Server 7.
Our network protocol is TCP/IP, servers is NT40. I configured MSSQL Server
to TCP/IP (not named pipes). So I wrote a simple applet and try to connect
but I can't. I compiled the applet code succesfully. When I use Netscape
Nevigator 4.75 for test my applet in Java Console (Netscape) I saw a
message. The message is :
SQLException: security.Couldn't connect to 'DENIZ' with origin from ''.

So what's the problem??? My OS is Windows 2000 Proffessional. MSSQL Server
7 is on the Windows NT 40 SP6.

I need your helps...

Thanks ....

Deniz

My sample code is below ;

public void ARAMAYI_BASLAT() {
String URL = "jdbc:freetds:sqlserver://DENIZ:1433/NUFUSDATA" ;
Connection BAGLANTI ;
String SQL = "SELECT * FROM NUFUSTABLO WHERE NUF_SYD ='TATAR'" ;
Statement STATEMENT ;
try {
Class.forName("com.internetcds.jdbc.tds.Driver");
}
catch(java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
}
try {
BAGLANTI = DriverManager.getConnection(URL, "sa", "");
STATEMENT = BAGLANTI.createStatement();
ResultSet RS = STATEMENT.executeQuery(SQL);
while ( RS.next() ) {
SAHIS = RS.getString("NUF_ADI") +
RS.getString("NUF_SYD") +
RS.getString("NUF_AAD") +
RS.getString("NUF_BAD") +
RS.getString("NUF_DTA") +
RS.getString("NUF_DYE") + "\n";
txtSONUC.append( SAHIS );
}
STATEMENT.close();
BAGLANTI.close();
}
catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
}
} // ARAMAYI_BASLAT



  • SQLException: security.Couldn't connect to 'MSSQL7_SERVERNAME' with origin from ''., Deniz TATAR, 10/03/2000

Archive powered by MHonArc 2.6.24.

Top of Page