The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.
Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.
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
|How to duplicate form in Visual Studio 2015||2||58|
|VB.net Invalid Cast From 'Enum' to 'DateTime' Couldn't store <Null> in oDate Column||4||31|
|Get month and date in a format||4||31|
|VB.NET - Refactor Class per SOLID principles||2||16|