Data Source Localhost Initial Catalog Personne Integrated Security True
Data Source Localhost Initial Catalog Personne Integrated Security True
Imports System.Data
Imports System.Data.SqlClient
Public Class Form1
Dim cnx As New SqlConnection("data source=localhost;initial
catalog=Personne;integrated security=true;")
Private Function listestyliste() As DataTable
Dim table As New DataTable
Dim cmd As New SqlCommand("Select s.nomstyliste,c.designationcostume
from styliste s , costume c where s.numstyliste=c.numstyliste", cnx)
Try
table.Load(cmd.ExecuteReader)
Catch ex As Exception
MsgBox(ex.Message)
End Try
Return table
End Function
End Sub
End Sub
End Class