0% found this document useful (0 votes)
43 views3 pages

Inserting, Deleting, Updating Data From A Data Source: Herve Roggero

This document discusses how to insert, delete, and update data in a data source using SqlClient. It covers executing commands without expecting data back using SqlCommand.ExecuteNonQuery, executing commands expecting a single value returned using SqlCommand.ExecuteScalar, and consuming returned parameters like output and return values from stored procedures. The topics to be covered include changing data using stored procedures with SqlClient and handling the effect of SET NOCOUNT ON when using SqlClient.

Uploaded by

biplobusa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views3 pages

Inserting, Deleting, Updating Data From A Data Source: Herve Roggero

This document discusses how to insert, delete, and update data in a data source using SqlClient. It covers executing commands without expecting data back using SqlCommand.ExecuteNonQuery, executing commands expecting a single value returned using SqlCommand.ExecuteScalar, and consuming returned parameters like output and return values from stored procedures. The topics to be covered include changing data using stored procedures with SqlClient and handling the effect of SET NOCOUNT ON when using SqlClient.

Uploaded by

biplobusa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Inserting, Deleting, Updating data

from a data source

Herve Roggero
http://www.herveroggero.com
[email protected]
Topics Covered

 Insert, Delete, Update using SqlClient


 Changing data using stored procedures with SqlClient
 SqlCommand.ExecuteNonQuery
 Execute a command without expecting data back
 SqlCommand.ExecuteScalar
 Execute a command and expecting a single value back
 Consuming returned parameters
 Read output and return parameters from a Stored Procedure
Summary

 Insert, Delete, Update with SqlClient


 ExecuteNonQuery, ExecuteScalar
 Return parameters (Output and ReturnValue)
 Effect of SET NOCOUNT ON on SqlClient

You might also like