OhioCowboy
Technical User
I am just starting to get into our company Pervasive DB. I've got VB6 experience, but my SQL knowledge is very basic.
The following SQL code worked 6 months ago when I had to add a couple of tables to our DB app after we did an update.
sql = "CREATE TABLE SalesShipInfo USING 'SalesShipInfo.DAT' "
sql = sql & "(PBID IDENTITY, "
sql = sql & "CustID Char(20) Not NULL, "
sql = sql & "CustContact Char(30), "
sql = sql & "CustPhone Char(20)) "
Now I get an error code 5. If I remove the Identity constraint, the build works, but my data is out of sync. (the first 2 characters of each field are missing)
There are actually 20 field to the table, but the error occurs at the first field (PBID)
Any ideas?
The following SQL code worked 6 months ago when I had to add a couple of tables to our DB app after we did an update.
sql = "CREATE TABLE SalesShipInfo USING 'SalesShipInfo.DAT' "
sql = sql & "(PBID IDENTITY, "
sql = sql & "CustID Char(20) Not NULL, "
sql = sql & "CustContact Char(30), "
sql = sql & "CustPhone Char(20)) "
Now I get an error code 5. If I remove the Identity constraint, the build works, but my data is out of sync. (the first 2 characters of each field are missing)
There are actually 20 field to the table, but the error occurs at the first field (PBID)
Any ideas?