yyiiyyii
March 3rd, 2007, 06:48 PM
Wanted: sample SQL connection in ASP.NET / VB.NET for 2005
i can do it in 2003 although i dont know how to get it work in 2005.
For Example this works in 2003
Protected dCon As SqlClient.SqlConnection
Protected dAdapter As SqlClient.SqlDataAdapter
Dim dtSoftwareTable As DataTable = New DataTable()
dCon = New System.Data.SqlClient.SqlConnection(ConnectionStringStr) '7
dAdapter = New SqlClient.SqlDataAdapter("select * from table", dCon)
dAdapter.Fill(dtSoftwareTable)
so how can i get this to work in 2005
i can do it in 2003 although i dont know how to get it work in 2005.
For Example this works in 2003
Protected dCon As SqlClient.SqlConnection
Protected dAdapter As SqlClient.SqlDataAdapter
Dim dtSoftwareTable As DataTable = New DataTable()
dCon = New System.Data.SqlClient.SqlConnection(ConnectionStringStr) '7
dAdapter = New SqlClient.SqlDataAdapter("select * from table", dCon)
dAdapter.Fill(dtSoftwareTable)
so how can i get this to work in 2005