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.

Passaggio di parametri (3)<br />

• La stored procedure accetta un parametro di tipo intero che<br />

rappresenta l’identificativo della categoria dei prodotti.<br />

• Vediamo come invocare questa stored procedure nella<br />

nostra applicazione:<br />

da As New SQLDataAdapter(“ProdottiPerCategoria”,<br />

Conn)<br />

da.SelectCommand.CommandType =<br />

CommandType.StoredProcedure<br />

Dim Param As New SQLParameter (“@IDCategoria”,<br />

SQLDbType.Int)<br />

Param.Direction = ParameterDirection.Input<br />

Param.Value = 40

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

Saved successfully!

Ooh no, something went wrong!