regards,
SNS
Then, if you are using sql statements to retrieve you:
string s_strg
blob b_strg
SELECTBLOB clue
INTO :b_strg
FROM residents
WHERE appid = 1
USING SQLCA;
s_strg = String(b_strg)
Then your variable s_strg will have all the data.
If you are updating the database you:
string s_strg
blob b_strg
s_strg = "a very large string up to 2gb..."
b_strg = Blob(s_strg)
UPDATEBLOB residents
SET clue= :b_strg
WHERE appid = 1
USING SQLCA;
The column will contain all the data up to 2gb
If you are using datawindows see my last posting.
Greg
Regards,
SNS
In the mean time, this is what I would do...
Each row in the datawindow will have to have an ellipsis button on it
that will open a "text editor". This editor will be responsible for
reading and updating the large amount of text. You will use SELECTBLOB
and UPDATEBLOB to facilitate this.
Not that it's very hard for the user to work with large amounts of text
in a datawindow. Having a separate text editor would make for a better
user experience.
--
*********************************************************************************************************
www.PowerToTheBuilder.com
- Take control of your GUI with a free PB user control library
- Get updates from my blog - blog.PowerToTheBuilder.com
- Get support from - forum.PowerToTheBuilder.com
*********************************************************************************************************
www.Werysoft.com
- Full featured database development tool for ASE, SQL Server, SQL
Anywhere and Oracle
Get productive today!
*********************************************************************************************************
Basically the column is a text datatype(ASE 12.5) where the
user either types in text or copies and pastes the text and
saves it.The reason it was made so was that it could
accomodate large amount of typed info. In cases where the
text is larger than 32767, it truncates the rest of the txt
and saves. This is because the Datawindow treats it as a
Char datatype and not as a text datatype. We exported the DW
and changed the size to char(2000000) in the editor and
imported it back. After the import, the datawindow displays
the column size as char(2000000).But while saving/updating
it still truncates any characters that exceed the 32767
limit. Is there a workaround ?
Regards,
SNS
Regards
Reimer
After you do you're update, you will have to do a second pass. For each
row in the database, get the text from the Text column and call
UPDATEBLOB with the appropriate key.
That is the only way around this.
I've asked for this in the past but for some reason it's not a priority.
There should be a Text datatype in the datawindow for this type of thing.
--
*********************************************************************************************************
After you do your update, you will have to do a second pass. For each
row in the DATAWINDOW, get the text from the Text column and call
UPDATEBLOB with the appropriate key.
Regards,
SNS
Regards,
SNS