What are the ways to create connection in ADO.NET?There are two ways to create connection supported by ADO.NET.
- Steps to create connection in code - Create instance of connection object. - Set the ConnectionString property.
Steps to create connection using designer Drag connection object from the Data tab of the toolbox. Set the ConnectionString property using properties window.
|