Help with Connection script
I have a connection script that I formated afer an article I just read but for some reason I cannot get it to exist error free. I am attempting to write a connection script for C#:
SqlConnection sqlConn = new SqlConnection(server=local;uid=sa;pwd=;database=profile;);
sqlConn.Open();
For what I think are obvious reasons, I get build errors on all of the ";" from inside the parenthesis.
Can someone help me?
Thank you.
Regards,
Tim

onthe_row86 reputationPosted Apr 8, 2004, 12:37 AM EDT
anu 08 reputationPosted Apr 8, 2004, 3:18 AM EDT
timothy.farrell175 reputationPosted Apr 8, 2004, 7:44 AM EDT
spgilmoreRank #1,616 · 964 reputationPosted Apr 8, 2004, 8:16 AM EDT
timothy.farrell175 reputationPosted Apr 8, 2004, 8:33 AM EDT
timothy.farrell175 reputationPosted Apr 8, 2004, 8:41 AM EDT
timothy.farrell175 reputationPosted Apr 8, 2004, 10:05 AM EDT
timothy.farrell175 reputationPosted Apr 8, 2004, 11:27 AM EDT
timothy.farrell175 reputationPosted Apr 8, 2004, 11:44 AM EDT
sjonesRank #7,001 · 251 reputationPosted Apr 8, 2004, 6:14 PM EDT