FileUpload C# - Debugging
FileUpload C# - Debugging
Markus Evacoso
Posts: 11Questions: 3Answers: 0
Hi,
when I try to upload a file via the file input, I get the following message:
Cannot insert the value NULL into column 'id', table 'MyDB.dbo.tbl_myTable; column does not allow nulls.
INSERT fails. The statement has been terminated.
I wonder if it is possible to get the SQL statement or a sample SQL statement to see, how the two tables ("normal" data and metadata table for images) are linked together.
All the best,
Markus
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi Markus,
With Editor 1.6 you can enable the new debug mode to see the SQL being executed.
Does your table have an auto increment / serial on its primary key?
Allan