Hello.
I have a SQL database called bd with a table called dados.
I want to get one row from it.
Web.config
<add connectionString="Data Source=(local);Initial Catalog=bd;Integrated Security=True" name="bd" providerName="System.Data.SqlClient"/>
variable declarations
Dim DS As New bd
Dim a1row As bd.dadosRow
this code in the method won't return anything.
In fact it throws a "object not set to an instance of an object" error.
a1row = DS.dados.FindBycode(5440987)
but if I perform a query I get the values: <img alt="snapshot" src="https://www.flickr.com/photos/29661370@N04/21923636492/"/>
Where did I go wrong?
Thanks