• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

ODBC error: COUNT field incorrect

 
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I am using VAJ 3.5 and am trying to update and insert a row into a table. I can run a select statement just fine, but on both the update and insert commands, I keep getting the following error:
A database manager error occurred.
SQL State: 07001
[Microsoft][ODBC SQL Server Driver]COUNT field incorrect
Any ideas? I have a very limited knowledge of SQL, and can't figure out what the heck this is trying to tell me.
Thanks in advance!

 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can we see what your insert and update statements look like?
 
Jennifer Sohl
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"INSERT INTO dbo.PCVENDX ( PCVNO, PCVNM, PCVA1, PCVA2, PCVCT, PCVST, PCVZ5, PCVCT1, PCVPH1, PCVCT2, PCVPH2, PCVTRM, PCVMIN, PCVCM1, PCVCM2, PCVRTG, PCVFTM, PCVLTL, PCVLTM, PCVSK, PCVPH3, PCVOUT, PCVEML ) VALUES ( :VNUM, :VNAM, :VADDR1, :VADDR2, :VCITY, :VSTAT, :VZIP, :CTC1, :PHN1, :CTC2, :PHN2, :TRMS, :MORD, :COMM1, :COMM2, :TRUCK, :TRTYP, :LTLCAR, :LTLTYP, :SKAP, :FAXN, :OUTC, :VEML )";
"UPDATE dbo.PCVENDX SET PCVNO = :VNUM, PCVNM = :VNAM, PCVA1 = :VADDR1, PCVA2 = :VADDR2, PCVCT = :VCITY, PCVST = :VSTAT, PCVZ5 = :VZIP, PCVCT1 = :CTC1, PCVPH1 = :PHN1, PCVCT2 = :CTC2, PCVPH2 = :PHN2, PCVTRM = :TRMS, PCVMIN = :MORD, PCVCM1 = :COMM1, PCVCM2 = :COMM2, PCVRTG = :TRUCK, PCVFTM = :TRTYP, PCVLTL = :LTLCAR, PCVLTM = :LTLTYP, PCVSK = :SKAP, PCVPH3 = :FAXN, PCVOUT = :OUTC, PCVEML = :VEML WHERE ( ( dbo.PCVENDX.PCVNO = :VNDNO ) )";
Just a note: These statements were generated by the SQL Assist SmartGuide.
Thanks!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic