ASP.NET - steps for how to get connection with sql 2008 databas in asp .net ?

Asked By Dikshan Shah on 21-Aug-12 07:46 AM
I want to connect sql database with asp .net. plz give me a step by step process.
Peter Bromberg replied to Dikshan Shah on 21-Aug-12 12:48 PM
SqlConnection conn = new SqlConnection("server=servername;database=dbname;uid=username;pwd=password);