This lesson will also show you how to retrieve a single value from a database, such as the number of records in a table.
The following code shows how to update data: Again, we put the SQL command into a string variable, but this time we used a different Sql Command constructor that takes only the command.Then we obtain a Sql Data Reader object by calling the Execute Reader method of the Sql Command object, cmd.This code is part of the Read Data method of Listing 1 in the Putting it All Together section later in this lesson. Now you can ask questions directly to me on my new site ASPForums. Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.