salut a tous !!
je veut faire une connection (asp.net) avec une bd sql seveur mais elle marche pas par contre elle marche trés bien avec une bd acces
voisi mon code :
Dim myconn
As New SqlClient.SqlConnection("integrated security=SSPI;initial catalog=nom_bd")
Dim myCommand As SqlCommand = myconn.CreateCommand()
Private Sub Page_Load(
ByVal sender
As System.Object,
ByVal e
As System.EventArgs)
Handles MyBase.Load
myconn.Open()
myCommand.CommandText = "select * from table"
Dim myReader As SqlDataReader = myCommand.ExecuteReader()
Do While myReader.Read()
ListBox1.Items.Add(myReader.GetInt32(0) & Space(40) & myReader.GetString(1) & Space(40) & myReader.GetString(2))
Loop
myReader.Close()
myconn.Close()
End Sub
alors je veut savoir exactement s'il y a une chose que j'ai oublier soit ds le code oubien ds la configuration de iis.........
et merci bcp !!