sql - Run-time error '3049' when qdf.Execute dbFailOnError in Access -
i trying commit new data various databases , when keep committing data after while, shows me error:
the commit statment looks this:
sql "insert bond values("","hk0000122334","cnh",8447.5357732363,8447.5357732400,0.0000000037,109913,"01jun15")".
the database reaches 2.09gb well. code looks this:
sub commit(dbname string, tablename string, commitstring string, reportdate string) dim ws dao.workspace dim db dao.database dim ssql string dim qdf querydef sdb = dbname & ".accdb" set ws = dbengine.workspaces(0) set db = ws.opendatabase(sdb) sqlstatementlist = split(commitstring, ";") each sqlstatement in sqlstatementlist sqlstatement = replace(sqlstatement, ")" & vblf, reportdate) if instr(tablename, "eis") <> 0 sqlstatement = replace(sqlstatement, "eis", tablename) end if ssql = sqlstatement set qdf = db.createquerydef("", ssql) qdf.execute dbfailonerror next sqlstatement end sub
what have tried far:
1)
set qdf = nothing set db = nothing
this did not help. still same issue.
2) tried delete particular database , proceeded committing rest of databases still had same issue.
need guidance on solving this.
the maximum size of access database 2gb (link 2010, 2013 appears same). yes insert fail when database gets large. options break data database file or switch sql server or other database type.
Comments
Post a Comment