voici mon code
Try
'Chaîne de connexion
Dim connectString As String
"database FORMV8_GILLES;server =ABDELHADI;User ID =ADMIN;pwd =ADMIN"
'Objet connection
Dim connection
As SqlConnection =
New SqlConnection(connectString)
'Ouvertureconnection.Open()
MsgBox(
"connexion réussie")
Catch ex
As ExceptionMsgBox(
"Connexion impossible à l'application")System.Diagnostics.Debug.WriteLine(ex.ToString())
End
Try
voici l'erreur
Une exception de première chance de type 'System.IO.FileNotFoundException' s'est produite dans mscorlib.dll
Une exception de première chance de type 'System.IO.FileNotFoundException' s'est produite dans mscorlib.dll
Une exception de première chance de type 'System.Data.SqlClient.SqlException' s'est produite dans System.Data.SqlClient.dll
Une exception de première chance de type 'System.Data.SqlClient.SqlException' s'est produite dans System.Data.SqlClient.dll
Une exception de première chance de type 'System.Data.SqlClient.SqlException' s'est produite dans System.Data.SqlClient.dll
Afficher la suite