TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kalyani Palikondawar
NA
1
1.7k
problem in connection string
Jan 3 2012 6:59 AM
public New_Employee_Detail()
{
InitializeComponent();
str2 = Update.Text;
con = new OleDbConnection(@"Data Source=COMP5\SQLEXPRESS;Initial Catalog=TNTDB;Integrated Security=True");
con.Open();
dept_text1.Items.Clear();
string OleDb;
if (GlobalClass.EmpID == "admin")
{
OleDb = "SELECT EmpID FROM EmployeeDetails WHERE status IS NULL";
}
else
{
OleDb = "SELECT EmpID FROM EmployeeDetails WHERE EmpID NOT IN('HR001') And status IS NULL";
}
OleDbCommand1 = new OleDbCommand(OleDb, con);
OleDbDataReader dr = OleDbCommand1.ExecuteReader();
while (dr.Read())
{
dept_text1.Items.Add(dr[0]);
count++;
}
dr.Close();
}
Reply
Answers (
3
)
problem in connecting MS access with C#
while type the name in english at the time i want to display tamil language using visual studio 2005