Skip to content
Loading
  • Bharathi Raja
    +1
    1. open the Server Explore[ctrl+alt+s]
    2. Data connection Click to add the new connection
    3. Dropdown Select Your Server name And Database name
    4. Connction add to F4 click to propert window Connection string copy to your code
    EX:
    SqlConnection con = new SqlConnection(@"Data Source=@@@@@@@@@@@@@@@;Initial Catalog=KTest;Integrated Security=True");
    +1
  • Mageshwaran R
    0
    Hi,
    Can you check with the below link:
    http://csharp.net-informations.com/ado.net/csharp-connection-string.htm 
    0