FileUpload C# - Debugging

FileUpload C# - Debugging

Markus EvacosoMarkus 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

Answers

  • allanallan Posts: 63,836Questions: 1Answers: 10,518 Site admin
    Answer ✓

    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

This discussion has been closed.