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 designerSteps to create connection in code
Create instance of connection object.
Set the ConnectionString property.
Drag connection object from the Data tab of the toolbox.
Set the ConnectionString property using properties window

0 Comments:
Post a Comment