Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 2nd, 2004, 07:14 AM
Registered User
 
Join Date: Dec 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP UPDATE CLOB

Hi
Am trying to update VARVALUE field with more than 4000 Charecters which will be given in the text area of hrcex.html file.It is updating the data wchose length is less than 4000Charecters.Want to update data with more than 4000Charecters my table structure is like this and my code is like below.Pls make the necessary correction and send me at [email protected]
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' "

Response.write( "Going to fire the following SQL<br>" & strSql )

Ora.ExecuteSQL strSql

Response.write( "SQL execute success")



%>


Thanks Sagarika
[email protected]






Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp/Oracle-Clob Thiago Classic ASP Databases 2 January 26th, 2009 09:03 AM
Oracle stored procedure with clob return Alok Singh Oracle ASP 1 January 31st, 2008 07:53 AM
Retrieving clob oracle with php roxusername PHP Databases 0 October 30th, 2006 02:02 PM
Update Scoreboard - ASP cancer10 Classic ASP Databases 1 October 24th, 2006 08:28 AM
comparing CLOB fields pankaj_daga Access 0 August 5th, 2004 04:38 AM





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