Ask a Question related to Coldfusion Database Access, Design and Development.
-
lapikov1 #1
DB2 error while using CF_LONG_VARCHAR or CF_CLOB
Hello, all.
I experience following problem with ColdFusion MX 7.0: IBM DB2 7.2 FixPack 10
(for Windows) does not accept character data for <CFPROCPARAM> tag with length
more than 8175 bytes (database is in UTF-8). It could be OK (according to
[url]http://www-128.ibm.com/developerworks/db2/library/techarticle/dm-0601poon2/[/url]),
but... If I use CF_CLOB as data type for parameter of procedure -- the same
thing occurs.
Here is the code:
<CFSET szTestValue = "">
<CFLOOP FROM="1" TO="8176" index="c1">
<CFSET szTestValue = szTestValue&"!">
</CFLOOP>
<CFTRY>
<CFSTOREDPROC procedure="sp_test_21" datasource="DB_USER" username="admin"
password="admin">
<CFPROCPARAM type="In" cfsqltype="CF_SQL_LONGVARCHAR" maxlength="32000"
value="#szTestValue#" dbvarname="param1">
</CFSTOREDPROC>
<CFDUMP var="ok">
<CFCATCH>
<CFDUMP var="#cfcatch#">
</CFCATCH>
</CFTRY>
Error is: CLI0143E Invalid precision value. SQLSTATE=HY104.
If I set length of szTestValue to 8175, then I have error: SQL1109N The
specified DLL "sp_test_21" could not be loaded (it is ok, because I do not have
this procedure, this is just a test).
So the question is: how to get rid of this problem? Can I use CLOB for
transfer of data to stored procedure? For ColdFusion 5.0 we have no problem
with this issue. Please, give any suggestions.
Database is registered as ODBC socket data source. I set corresponding
parameters in data source profile in CF MX Administrator, but error this exists.
lapikov1 Guest
-
Error Message "A drawing error ocurrred which is probably due to an out-of-memory condition. Try qu
I am running Acrobat Reader 5.0 on a Mac Powerbook running OS 9.2 and keep getting "A drawing error occurred which is probably due to an out of... -
Error 403 Failed to read heders Error for long-runningCFMAIL and CFINDEX command
I have two different pages with long-running scripts on which I am recieving the following error: Error - 403 Failed to read headers to server:... -
Error Creating Control: Parser Error DocHeader does not have a property named 'cc3:MyItems'
I am having problems getting this webcontrol working properly. Everything else works fine except having items. So here is the low-down on the... -
Unexpected error. A trappable error (C0000005) occurred in an external object.
Hi Elvin, After doing some reseaarch on this problem, I found there is a lot of issues which may cause the problem, for example, incorrect access... -
An error occurred while try to load the string resources (GetModuleHandle failed with error -2147023888)
Hello, on one of our customers servers we get following error on first ASPX-page: An error occurred while try to load the string resources...



Reply With Quote

