

Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click Me.TirageTableAdapter.Fill(Me.LotterieDataSet.Tirage) Vous pouvez la déplacer ou la supprimer selon les besoins. 'TODO: cette ligne de code charge les données dans la table 'LotterieDataSet.Tirage'. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load I can connect to my database in SSMS with Windows authentication with no problems.īut I cannot create a connection from Visual Studio in my code to make it work.Ĭan someone guide me how to do it? And also, I'm connected on a domain that I will call for example SAQ. mdf was created on C:\Users\Amenard, but then copied in C:\Users\Amenard\source\repos\Projet1 in Visual Studio when I created my project. I have installed SSMS and created a local DB which the. In order to do so, I have to make a connection to my db and make query. mdf database file to see all my data on it.īut I want to be able to add or remove data with a button. I've created a database named LOTTERIE and on my form I inserted a DatagridView which I linked my.


It's been a while since I programmed with Visual Studio (Visual Basic) and SQL Server, and I wanted to get back into it.
