RDV+DIAL chat illimit� dans ta r�g!
no save
Assistance
Achat
News

Forum | programmation
accès à SQL server 2005 via java
chercheDBA, le jeu. 21 févr. 2008 à 14:42:03
Bonjour à tous,

je ne parviens pas à attaquer localement ma BD via une application web codée en java.

J'utilise SQL server 2005, je pense avoir correctement configuré la base, j'ai bien spécifié le port 1433, le mode tcp/ip est activé. La connection se fait par authentification windows, j'ai bien collé le fichier sqljdbc_auth.dll dans le repertoire windows/system32 donc je n'ai plus le message d'erreur "Fail to load sqljdbc_auth.dll"...

Par contre, j'ai ce message là:

java.lang.UnsatisfiedLinkError: com.microsoft.sqlserver.jdbc.AuthenticationJNI.GetDNSName(Ljava/lang/String;[Ljava/lang/String;Ljava/util/logging/Logger;)I
at com.microsoft.sqlserver.jdbc.AuthenticationJNI.GetDNSName(Native Method)
at com.microsoft.sqlserver.jdbc.AuthenticationJNI.GetDNSName(Unknown Source)
at com.microsoft.sqlserver.jdbc.AuthenticationJNI.InitDNSNameAndPort(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(Unknown Source)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(Unknown Source)
...

voici mes paramètres de connection
driver= com.microsoft.sqlserver.jdbc.SQLServerDriver
url= jdbc:sqlserver://localhost:1433;databaseName=mabase;IntegratedSecurity=true

Je suis vraiment perdu, donc toute aide serait la bienvenue.

Merci. Configuration: Windows XP
Firefox 2.0.0.12
SQL server 2005
Version Web
Réalisé par RedShift
no save