|
-
February 9th, 2000, 04:52 AM
#1
Long Fields Oracle and VB
I am using VB6 and oracle.I want to insert a long field in a table. what insert statement shoud i use??
I use the insert sql statement. But Oracle gives me an error. "The string is too large..."
please anyone help me. it is a bit urgent.
-
February 9th, 2000, 07:00 AM
#2
Re: Long Fields Oracle and VB
check your table definition at Oracle database.
see what is the datatype and length ( max char) defined for the particular column you want to insert "large" text in.
Either modify the table definition such that it can store "larg" ( but definite, ofcourse length). It should work for you
Or..if changing table definition is possible ( for whatever reasons), try to change your logic at VB code so that it splits "large" text into "small" text string( equal or less then to the length defined at Oracle level)..and do multi ple insert.
Hope this helps:
-
February 9th, 2000, 07:09 AM
#3
Re: Long Fields Oracle and VB
check your table definition at Oracle database.
see what is the datatype and length defined for the particular column you want to insert "large" text in.
Either modify the table definition such that it can store "large " ( but definite length, ofcourse).
Or..if changing table definition is not possible ( for whatever reasons), try to change your logic at VB code so that it splits "large" text into "smaller" text strings( equal or less then the length defined at Oracle level)..and do multiple inserts.
Hope this helps:
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|