Question - How can create a SqlConnection?
Answer -
SqlConnection class is used to establish the connection between front end and back end.
Syntax:
SqlConnection obj=new SqlConnection(“Integrated Security=true;Initial Catalog=Table_Name;Data Source=.”);-- for Windows authentication
SqlConnection obj=new SqlConnection(“user id= sa ; Password=sa123;server=.;database=name”); --Sql server Authentication