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
ta mu
NA
201
81.8k
invalid colum name
Jul 24 2013 5:47 AM
i am using this code but at da.fill(dt) i got error "invalid colum name a" this a is user name and exist in database. this is a desktop application
private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
{
if ( comboBox1.SelectedItem.ToString() == "Name")
{
SqlConnection my = new SqlConnection(@"Data Source=heaven_prince20;Initial Catalog=final_pr;Integrated Security=True");
my.Open();
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter("Select * from addcustomer where name= " +
textBox1.Text + "", my);
da.Fill(dt); ......................................error
}
else
{
MessageBox.Show("error");
}
Reply
Answers (
7
)
Ajax Controller in C#
Remove password from Word documents