Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query definition cashe size

Status
Not open for further replies.

Pinan

IS-IT--Management
Jul 15, 2002
40
US
I have an connection string sending information to a database, and it works fine, until the information quantity exceeds the cache size for the connection string. this is the code that inserts the information.

'define the worskpace and connection
Dim wrkSpace As Workspace
Dim conPubs2 As Connection

'make the appropriate settings
Set wrkODBC = CreateWorkspace("NewODBCWorkspace", "", "", dbUseODBC)
Set conPubs2 = wrkODBC.OpenConnection("Connection2", dbDriverPrompt, False, "ODBC;")


'insert the information into the database
Set QD = conPubs2.CreateQueryDef("", "INSERT INTO SYSTEM_INFORMATION.TCC$010_ISSUE_LOG VALUES('" & lblCalc.Caption & "' ,'" & txtSBCUID.Text & "', date, '" & Combo1.Text & "', '" & txtNCR.Text & "', '" & txtVantiveChange.Text & "', '" & txtVantive.Text & "', '" & txtKeywords.Text & "', '" & txtLog.Text & "')")

QD.Execute dbRunAsync

Sorry about the format...it got ugly. When I put a watch on QD, it shows the cache set at 100. I need it much larger; more like 6500. How can I change the cache size of the QD (query definition)? Like I said, it works fine on small quantities of information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top