Sanjay Dixit
How to creating a SqlConnection Object?
By Sanjay Dixit in ADO.NET on Jul 01 2013
  • Abhishek Shukla
    May, 2014 28

    SqlConnection conn = new SqlConnection("Data Source=DatabaseServer;Initial Catalog=DataBase_Name;User ID=UserID;Password=Password");

    • 2
  • Sharad Rathore
    Jul, 2013 14

    SqlConnection conn = new SqlConnection("Data Source=DatabaseServer;Initial Catalog=Northwind;User ID=YourUserID;Password=YourPassword");

    • 1
  • Prasad Deshmukh
    Apr, 2019 22

    SqlConnection con = new SqlConnection ();

    • 0
  • Keerthi Venkatesan
    Apr, 2016 1

    connetionString="Data Source=ServerName; Initial Catalog=DatabaseName;User ID=UserName;Password=Password"

    • 0
  • Srinivas Pabballa
    Aug, 2015 28

    SqlConnection conn = new SqlConnection("Server=servername;database=databasename;uid=sa;pwd=urpassword");

    • 0
  • Rahul Prajapat
    May, 2015 26

    SqlConnection con = new SqlConnection("Data Source=DatabaseServer;Initial Catalog=DataBase_Name;User ID=UserID;Password=Password");

    • 0
  • Amit Tanwar
    May, 2014 28

    SqlConnection conn = new SqlConnection ("data source=databaseserver; Initial catalog=DataBase_Name; Integrated Security=True;");

    • 0
  • Amit Tanwar
    May, 2014 28

    SqlConnection conn = new SqlConnection ("data source=databaseserver; Initial catalog=DataBase_Name; Integrated Security=True;");

    • 0
  • Priti Kumari
    Jul, 2013 2

    (1)Using System.Data.SqlClient; (2) SqlConnection con = new SqlConnection(); con.ConnectionString="Data Source=ABC;Initial Catalog=studentdetail;uid=sa; pwd=Password1";

    • 0
  • Priti Kumari
    Jul, 2013 2

    (1)Using System.Data.SqlClient; (2) SqlConnection con = new SqlConnection(); con.ConnectionString="Data Source=ABC;Initial Catalog=studentdetail;uid=sa; pwd=Password1";

    • 0
  • Priti Kumari
    Jul, 2013 2

    (1)Add namespace Using System.Data.SqlClient. (2) SqlConnection con = new SqlConnection(); con.ConnectionString="Data Source=ABC;Initial Catalog=studentdetail;uid=sa; pwd=Pass1";

    • 0
  • Priti Kumari
    Jul, 2013 2

    (1)Add namespace Using System.Data.SqlClient. (2) SqlConnection con = new SqlConnection(); con.ConnectionString="Data Source=ABC;Initial Catalog=studentdetail;uid=sa; pwd=Pass1";

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS