ADO.NET

suggest change

Introduction

ADO.NET (ActiveX Data Objects .NET) is a library provided by Microsoft for access to data sources such as SQL Server, Oracle, and XML. .NET applications can retrieve, create, and manipulate data once they are connected to a data source through ADO.NET with the appropriate privileges.

ADO.NET provides a disconnected architecture: after the data is filled into objects such as a DataSet, the connection does not have to stay open for the rest of the session.

Remarks

A note on parameterizing SQL with Parameters.AddWithValue: AddWithValue is never a good starting point. That method infers the SQL type from the .NET value that is passed in, and the conversion can prevent the query from using an index. Some SQL Server types, such as char/varchar (without a preceding ā€œnā€) or date, do not have a matching .NET type. In those cases, use Add with the correct data type instead.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents