Numeric fields are showing up as NULL when a spreadsheet is read with RPG2SQL - Support

Numeric fields are showing up as NULL when a spreadsheet is read with RPG2SQL

From Support

Jump to: navigation, search
C                   Eval      Rtn = SQL_DBOpenConn(SQL_Socket:      
C                             'Driver={Microsoft Excel Driver '     
C                             '(*.xls)}; ' +                        
C                             'DriverID=790; ' +                    
C                             'Dbq=u:\brad\customer files\' +       
C                             'gilbarco\budgetin.xls; ' +           
C                             'DefaultDir=u:\brad;' +               
C                             'Pwd=;')                              

C                   Eval      Rtn = SQL_DBOpenConn(SQL_Socket:          
C                             'Provider=Microsoft.Jet.OLEDB.4.0;' +     
C                             'Data Source=' +                          
C                             'u:\brad\customer files\' +               
C                             'gilbarco\budgetin.xls; ' +               
C                             'Extended Properties='  +                 
C                             '"Excel 8.0;HDR=No;IMEX=1;";')            

This IMEX setting solved the problem.

Personal tools