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
David Smith
NA
2k
0
Access SQL Update String Error
Dec 3 2012 9:32 AM
I am not for sure what is wrong with the SQL below. I am getting No value given for the required parameters below. I am using an Access Database.
string sql = string.Format("UPDATE ApprovedPersonnel SET @UserName = '{0}', @Login = '{1}', [@Role] = '{2}', @IsActive = {3}, [@Password] = '{4}', @IsEditor = {5}, @UserModified = {6}, @UserNotes = '{7}', @UserModifiedTime = '{8}' " +
"Where ID = "+ ID +" ",
UserName,
Login,
Role,
IsActive,
Password,
IsEditor,
UserModified.ToShortDateString(),
UserNotes,
UserModifiedTime
);
Reply
Answers (
1
)
Spool command in SQL
on delete cascade in sql ? can you explain with example?