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
tunde Mattieu
NA
3
9.7k
insert statement using AddParams
Jul 8 2013 8:04 PM
Please I am trying out how to use dataAdapter.InsertCommand to insert into the DB. It says AddParams does not exist in my current context..Please is there something i am missing out. below is the code:
adapter.InsertCommand = myConn.CreateCommand();
adapter.InsertCommand.CommandText =
"INSERT INTO Article " +
"(artId, title, topic, authorId, lines, dateOfPublishing) " +
"VALUES(@artId, @title, @topic, @authorId, @lines, @dateOfPublishing) ";
AddParams(adapter.InsertCommand, "artId", "title", "topic", "authorId", "lines", "dateOfPublishing");
I am using visual studio 2012. Anyone with helpful hint.
Thanks.
Reply
Answers (
3
)
datagridview minimum length input
how to share my own website different local systems