| Author: Shunmuganathan M 04 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
You can create App.config.. You can keep the common values there...
By Nathan Direction is important than speed I am following the following Health Tips http://dotnetspider.com/sites/1048/-Health-Tips-for-Healthy-Wealthy-IT.aspx
|
| Author: Lalji 04 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
try this link
http://social.msdn.microsoft.com/Forums/en/sqlnetfx/thread/6b3588e0-f02b-4a5b-b780-63acb36aa548
http://msdn.microsoft.com/en-us/library/aa983322.aspx
|
| Author: Selvam 14 Nov 2009 | Member Level: Bronze | Rating:  Points: 2 |
first off all add namespace
using System.Data.SqlClient;
den go to menu bar click the option called Data->Add New DataSource-Create new Connection ->select
|
| Author: Selvam 14 Nov 2009 | Member Level: Bronze | Rating:  Points: 2 |
first off all add namespace
using System.Data.SqlClient;
den go to menu bar click the option called Data->Add New DataSource-Create new Connection ->select msSQL provider for client -> and test the connection..
den open the Data in menu bar n Add New Data source-> Below u can find a connection String +, expand tat and copy the connection String. it ill b useful in future.Create one dataGridview to display the output from database... Codings:
SqlConnection con = new SqlConnection(the copied connection string);
SqlDataAdapter sd = new SqlDataAdapter("select StaffID from StaffAppointment ",conn); DataSet ds = new DataSet(); sd.Fill(ds); dataGriview1.dataSource=ds;
|