Dot Net TechnologyTU Board 2021
Explain difference between ExecuteReader and ExecuteNonQuery. Provided that a mysql database named "Company" with table named "Product" with following columns (ProductId as int, ProductName as…
10Explain difference between ExecuteReader and ExecuteNonQuery. Provided that a mysql database named "Company" with table named "Product" with following columns (ProductId as int, ProductName as varchar(20), and UnitPrice as float). Write a C# program to connect to the database and display product records that have UnitPrice is greater than RS. 1000 and update the product record (such as Unit Price 4500) from ProductId whose ProductId=50.
A worked answer is on its wayMeanwhile, read the Dot Net Technology notes for this topic.
Discussion
Loading…
More Dot Net Technology questions
What are services provided by CLR? Write a C program to implement any four method of Console class. [2+3]TU Board 20255What is thread? Write a C program to create multiple thread along with main Thread.TU Board 20255Explain the difference between static and instance constructors with suitable example. [5]TU Board 20255What is difference between SDI and MDI application? How form inheritance can be performed in windows application?TU Board 20255What is compile time polymorphism? Write a C program to implement method overloading concept by computing area of square and circle. [1+4]TU Board 20255What is disconnected architecture in ADO.NET? How ADO.NET differs from classical ADO?TU Board 20255