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
Maria.Albuerne.Gonzalez
NA
2
0
inserting blob in database -->get error : column 'x' can not be null
Aug 18 2004 5:35 AM
I am trying to insert data in a column of type blob ( MySQL-ODBC 3.51 Driver ); I use a parametrized sql command with following sintax: string sql ="INSERT INTO Mytable(....,MyColumn) VALUES(.....,@MyParameter)"; .... and afterwards: OdbcParameter p=cmd.Parameters.Add"@MyParameter",OdbcType.VarBinary,bytes.Length,"MyColumn"); p.Value=bytes; cmd.CommandType = CommandType.Text; cmd.CommandText=sql; cmd.ExecuteNonQuery(); My Problem is that I keep getting the following exception System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 3.51 Driver][mysqld-4.0.18-nt]Column 'MyColumn' cannot be null Kan anybody say what I am doing wrong`? Thanx in advance
Reply
Answers (
1
)
Excel Database - Inserting Rows
IDS Informix 9.x