View Single Post
  #5 (permalink)  
Old 07-07-2008, 01:48 PM
Siten0308 Siten0308 is offline
Programmer
 
Join Date: Jun 2008
Posts: 113
Rep Power: 2
Siten0308 is on a distinguished road
Default Re: C# database pull problem

Hello Everyone, I have some good news, found the website that can help me alot with what pancrazio was talking about using the code to link the database in C# which is on this website http://www.codeproject.com/KB/databa...in_csharp.aspx

However the problem is, when it says to start making a Then we create a SqlConnection and specifying the connection string.

SqlConnection myConnection = new SqlConnection("user id=username;" +
"password=password;server=serverurl;" +
"Trusted_Connection=yes;" +
"database=database; " +
"connection timeout=30");

My question is... where do you put that? on the form itself by double clicking on the form itself and inserting into it? on the button etc it does not say where?
Reply With Quote

Sponsored Links