dougcranston
Technical User
I have a question, that may be appropriate for this forum.
============
Is their a length constraint for using Access Stored Procedures/Parameterized Queries where one of the fields is passing in/through a MEMO field?
============
I "found" Access 2000 Stored Procedures/Parameterized queries recently and have bought into them.
However, the "simple" approach I have been using surfaced a problem that I have tried researching and I THINK I have the answer but I am not sure.
Sample call:
oConn.Execute(txtMySql3, null, adExecuteNoRecords + adCmdStoredProc );
where the query is defined as:
txtMySql3 += ("sp_AddReport '");
txtMySql3 += (strASIRNo + "', '");
txtMySql3 += (strRegionCd + "', '");
txtMySql3 += (strRptFName + "', '");
txtMySql3 += (strRptLName + "', '");
txtMySql3 += (strDescription + "', '");
txtMySql3 += (intView + "'");
[NOTE: strDescription is a MEMO field in the database.]
As you can see, I am not building the "normal parameters" to pass. Up till now that has not been a problem.
What I found was my app works fine as long as the MEMO field contents is less than 255 chars.
More than that I get a range of wierd errors.. But as soon as I reduce the MEMO fields contents to 255 or less it works.
Would appreciate any input you might be able to offer.
Thanks in advance.
Doug Cranston
============
Is their a length constraint for using Access Stored Procedures/Parameterized Queries where one of the fields is passing in/through a MEMO field?
============
I "found" Access 2000 Stored Procedures/Parameterized queries recently and have bought into them.
However, the "simple" approach I have been using surfaced a problem that I have tried researching and I THINK I have the answer but I am not sure.
Sample call:
oConn.Execute(txtMySql3, null, adExecuteNoRecords + adCmdStoredProc );
where the query is defined as:
txtMySql3 += ("sp_AddReport '");
txtMySql3 += (strASIRNo + "', '");
txtMySql3 += (strRegionCd + "', '");
txtMySql3 += (strRptFName + "', '");
txtMySql3 += (strRptLName + "', '");
txtMySql3 += (strDescription + "', '");
txtMySql3 += (intView + "'");
[NOTE: strDescription is a MEMO field in the database.]
As you can see, I am not building the "normal parameters" to pass. Up till now that has not been a problem.
What I found was my app works fine as long as the MEMO field contents is less than 255 chars.
More than that I get a range of wierd errors.. But as soon as I reduce the MEMO fields contents to 255 or less it works.
Would appreciate any input you might be able to offer.
Thanks in advance.
Doug Cranston