Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle ASP
|
Oracle ASP Using ASP with Oracle databases. For Oracle discussions not specific to ASP, please see the Oracle forum. For more ASP discussions, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 4th, 2004, 01:55 AM
Registered User
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default > 4000 Charecters

Hi
when am entering charecters<4000 then there is no error when it is exceeding this following error is coming
Error Type:
Oracle Automation (0x800A01B8)
SQL execution error, ORA-01704: string literal too long
hrcu1.asp, line 17
Am sending the details below for u'r reference

Regards
Sagarika
My D/B str is
Name Null? Type
----------------------------------------- -------- ---------------
SITEID VARCHAR2(20)
SITEDATE DATE
VARNAME VARCHAR2(100)
VARVALUE CLOB

hrcex.html
<html>

<head>
<title>Enter the SQL here</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>

<body>

<form name="thisform" method="post" action="hrcu1.asp">
<div align="center"><center><p><big><strong>Enter the SQL to execute</strong></big></p>
</center></div><p><textarea name="sql" rows="3" cols="80"></textarea></p>
<div align="center"><center><p><input type="submit" name="submit" value="Submit"> <input
type="reset" name="reset" value="Reset"></p>
</center></div>
</form>
</body>
</html>

hrcu1.asp


<%
Dim OraSession
Dim OraDatabase
Dim Ora
Set OraSession = Nothing
Set OraDatabase = Nothing
Set Ora = Nothing

Set OraSession = CreateObject("OracleInProcServer.XOraSession")
Set Ora = OraSession.DbOpenDatabase("ORA","LG/LG",cint(0))

VarValue = Replace(Request.Form("sql"),"'","''")

strSql = strSql & "update sitedata set VarValue ="
strSql = strSql & " ' " & VarValue & " ' where siteid='FVS' and VarName='txtLink' "

Ora.ExecuteSQL strSql

%>

 
Old August 5th, 2005, 04:12 AM
Authorized User
 
Join Date: Jul 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Because of the size limit ,the error will be ocuring.
Go through the link for Oracle Datatypes,It may help you.
http://www.ss64.com/orasyntax/datatypes.html

Regards,
Ram.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chpt 7 >> Pg 245 >>Try It Out #4-5 harrison4411 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 2nd, 2006 06:26 PM
Achitecture ? SQL -> XML -> ASP -> PDF or HTML Frm jstrong Classic ASP XML 0 July 9th, 2005 01:18 PM
<style> tags in a <body> vs. <div> bcat BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 March 27th, 2005 08:50 AM
Chapter 4> ERROR using "=>>>" guiro BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 5 January 13th, 2005 06:38 PM
VB.Net -> Filename -> DTS Package -> tempdB daniel Pro VB.NET 2002/2003 1 October 7th, 2004 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.