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
blase satiate
NA
15
2.5k
UpdateCommand
May 21 2011 5:35 AM
what
is wrong here?
no error
shows
and nothing
happens
(the variables
are not empty
-
I
checked)
SqlCommand postname = new SqlCommand("UPDATE sites SET username=@username, userpass=@userpass WHERE useralias=@useralias",connection);
connection.Open();
SqlDataAdapter posttext = new SqlDataAdapter();
postname.Parameters.Add("@username", SqlDbType.NVarChar, 50, username);
postname.Parameters.Add("@userpass", SqlDbType.NVarChar, 50, userpass);
postname.Parameters.Add("@useralias", SqlDbType.NVarChar, 50, theAlias);
posttext.UpdateCommand = postname;
or am I
not
doing?
I need to
update
the column
to other
values??.
I
translated the
interpreter,
so
I apologize
if
poorly
understood.
Reply
Answers (
16
)
Please give site detail & tutorial link for Ado.net Basic concept
What would be the literal value of an empty DataGridView cell? (CellFormatting)