دوست عزیز از توجه شما متشکرم
اما من این تاپیک که لینکش رو گذاشتید و دیدم متاسفانه نتونستم کانکت شم
لطفا sample بگذارید
erorr:
SqlException
Imports System.Data
Imports System.Data.SqlClient
Public Class Test1
Public ConStr As String = "Data Source=HESABDARI;Initial Catalog=Restaurant;Persist Security Info=True;User ID=sa;Password="
Dim DT As New DataTable
Dim myCommand As SqlDataAdapter = New SqlDataAdapter("select * from garson", ConStr)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Try
myCommand.Fill(DT)
DataGrid1.DataSource = DT
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Class
لطفا راهنمایی فرمایید