27.06.2014 Views

INFORMATICA MEDICA

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Stored Procedure che restituiscono<br />

record (2)<br />

• Il seguente codice utilizza un oggetto Connection e un<br />

oggetto DataAdapter per invocare la stored procedure<br />

ListaCategorie:<br />

Dim da as New SqlDataAdapter<br />

da.SelectCommand = New SqlCommand()<br />

da.SelectCommand.Connection = Conn<br />

da.SelectCommand.CommandText = “ListaCategorie”<br />

da.SelectCommand.CommandType =<br />

CommandType.StoredProcedure

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!