Using SQL Server 2008 I created a Stored Procedure called MyStoreProc and it runs fine from the Management Tools.
In VB.Net 2008 I created a new dataset and a new Ta
try DataGridView2.DataBind(); at the end
There seem to be a wealth of resources available on how to do this. The best source would be: http://www.asp.net/learn/data-access/ -
Failing that a good old fashioned search yields lots too.
I managed to get this going now. Below is what I did. Thank you everyone for your help. It pushed me in the right direction.
Dim strCon As String = myConnectionString
Dim strSQL As String = "dbo.MyStoreProc"
Dim dataAdapter As New SqlClient.SqlDataAdapter(strSQL, strCon)
Dim table As New DataTable
dataAdapter.Fill(table)
DataGridView1.DataSource = table