I am using the connection string as below in my c # .net .. i will give the connection string in all the forms and i will give con.open in the form load.
is there any other shortest way is there to specify the connection at only once.
bcoz if i want to change the server name in future means i cant change it in all the forms right ?
any one can help me...
thanks in advance ....
SqlConnection conn = new SqlConnection("server=Servername ; database=databasename;uid=sa;pwd=********");