1

My query looks like this:

INSERT INTO tblFiles (filename,downloadname,description,length,parts,checksum) 
VALUES ('IMG_0228.JPG','file1','description1'
        ,2694310,1925,26931139928208758813621215525179134210220)

I am using an access database and my table looks like this:

This is the exception I get:

An unhandled exception of type 'System.Data.OleDb.OleDbException' occurred in System.Data.dll Additional information: Overflow

I do not understand what is causing this.

Grant Winney
  • 65,241
  • 13
  • 115
  • 165
Foxman
  • 189
  • 13

1 Answers1

2

The problem is with column datatype.

You tried to insert 26931139928208758813621215525179134210220 into number column which obviously generate overflow error.

You should change datatype of checksum column to string/binary.

Lukasz Szozda
  • 162,964
  • 23
  • 234
  • 275