±â¼ú ÀÚ·á: 601053 - ¸¶Áö¸· °ËÅä: 2004³â 9¿ù 21ÀÏ È¿äÀÏ - ¼öÁ¤: 2.0 ADO Stored Procedure¿¡ Numeric Parameter¸¦ »ç¿ëÇÏ´Â ¹æ¹ýÀÌ ¹®¼´Â ÀÌÀü¿¡ ´ÙÀ½ ID·Î ÃâÆÇµÇ¾úÀ½: KR601053 Çö»ó
ADO 1.5 ¶Ç´Â ÀÌ»ó ¹öÀüÀ» »ç¿ë ½Ã Numeric µ¥ÀÌÅÍ Çü½ÄÀÇ Input Parameter¸¦ °¡Áö´Â SQL ServerÀÇ
ÀúÀå ÇÁ·Î½ÃÀú(Stored Procedure)¸¦ È£ÃâÇßÀ» ¶§ ´ÙÀ½°ú °°Àº ¿¡·¯°¡ ¹ß»ýÇÑ´Ù.
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
Errors occurred
'
<% Make sure to close the Result Set and the Connection object
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
RS.Close
Conn.Close
%>
</TABLE>
<%
end if
end if
%>
END CODE: ===================================
ÇØ°á ¹æ¹ý
ADO¿¡¼ Parameter¸¦ AppendÇÒ °æ¿ì ÆÄ¶ó¹ÌÅÍÀÇ µ¥ÀÌÅÍ Çü½ÄÀ» adNumericÀ̳ª adDecimalÀ¸·Î ¼³Á¤ÇÒ
°æ¿ì´Â NumericScale°ú PrecisionÀ» ¼³Á¤ÇØ¾ß ÇÑ´Ù.
¾Æ·¡ÀÇ ÄÚµå´Â Numeric ÆÄ¶ó¹ÌÅÍ¿¡ Precision °ú ScaleÀ» ¼³Á¤ÇÑ ¿¹Á¦ÀÌ´Ù.
p.Append cm.CreateParameter("CustomerInventory", adNumeric, adParamInput)
cm.Parameters("CustomerInventory").Precision = 18
cm.Parameters("CustomerInventory").NumericScale = 4
|
À§·Î °¡±â
