Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Dim cnn As SqlConnection = New SqlConnection Try 'Dim strCnn As String = "Data Source=.\SQLEXPRESS12;AttachDbFilename=NORTHWND.MDF;Integrated Security=True;Connect Timeout=30" Dim strCnn As String = "Server='Mike-Vaio\SQLEXPRESS12';Database='NORTHWND.MDF';User='Mike';Password='XXXXX';Trusted_Connection=False;" Dim cmd As SqlCommand = New SqlCommand("Select * From tblProduct", cnn) cnn.ConnectionString = strCnn cnn.Open() Dim dr As SqlDataReader = cmd.ExecuteReader If dr.HasRows Then MessageBox.Show("Has Records") Else MessageBox.Show("Has no Records") End If ' DataTable dt = new DataTable(); 'dt.Load(dr); 'dataGridView1.DataSource = dt; Catch ex As Exception MessageBox.Show(ex.Message) Finally cnn.Close() End Try
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.