net and SQLserver Database connection :( visual studio 2005)
1. Create a form 2. right click on project in solution explorer-> add -> new item-> SQL dataase Sa!e "s #select the path$ %. go to &ata->add data src-> select SQLser!er dataase file->select dataase-> test connection-> finish '. Create tales and sa!e #eg. info # id numeric ->prim ke( ) name !archar$ *. &en write the following code to add records to dataase C# code using S(stem.Configuration+ using S(stem.&ata.S,lClient+ namespace -indows"pplication1 . pulic partial class /orm1 0 /orm . S,lConnection con+ S,lCommand cmd+ string ,uer(+ pulic /orm1#$ . con 1 new S,lConnection#23 &ataSource1.4SQL56785SS+"ttach&/ilename1C04&ocuments and Settings49ithila49( &ocuments4:isual Studio 2;;*47rojects4-indows"pplication14-indows"pplication14&ataase1.mdf+<ntegrated Securit(1=rue+Connect =imeout1%;+>ser <nstance1=rue3$+ <nitiali?eComponent#$+