Tech Tutorials Database
GeekArticles Microsoft Microsoft.NET

Execute action queries using SqlCommand in ASP.NET Core

Category: Microsoft.NET
Comments (0)

In the previous article we used SqlDataReader to execute SELECT queries and to read data from the database. You often need to execute action queries - INSERT, UPDATE, and DELETE - on the database to perform the respective operations. As far as as SQL Server data provider is concerned you can do that with the help of SqlCommand object. what we are going to discuss in this article.


Sponsored Links

Read Next: Chapter 2: Protecting Your Database with Startup Options