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
INSERT SQL ERROR C# Access Database
Dec 1 2012 11:24 PM
Can somebody tell me whats wrong with my sql command below. I am getting an syntax error below
string UserName,
string Login,
string Role,
bool? IsActive,
string Password,
bool? IsEditor,
DateTime UserCreated,
DateTime UserModified,
string UserNotes
string sql = string.Format("INSERT INTO usertable ( UserName, Login, Role, IsActive, Password, IsEditor, UserCreated, UserModified, UserNotes ) " +
"VALUES ( '{0}', '{1}', '{2}', '{3}', '{4}', '{5}', '{6}', '{7}', '{8}' ); ",
UserName,
Login,
Role,
IsActive,
Password,
IsEditor,
UserCreated,
UserModified,
UserNotes
);
Reply
Answers (
1
)
Reference cursor in SQL
Spool command in SQL