home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!bcm!mparsons
- From: mparsons@fleming.csc.bcm.tmc.edu (Mark Parsons)
- Newsgroups: comp.databases.sybase
- Subject: Re: APT and TEXT Fields
- Date: 18 Nov 1992 15:26:16 GMT
- Organization: Baylor College of Medicine, Houston, Tx
- Lines: 42
- Distribution: usa
- Message-ID: <1ednaoINNf2@gazette.bcm.tmc.edu>
- References: <1992Nov13.162033.4728@bnlux1.bnl.gov> <1e8fvqINN250@gazette.bcm.tmc.edu> <1992Nov17.185830.1520@bnlux1.bnl.gov>
- Reply-To: mparsons@fleming.csc.bcm.tmc.edu (Mark Parsons)
- NNTP-Posting-Host: fleming.csc.bcm.tmc.edu
- Originator: mparsons@fleming.csc.bcm.tmc.edu
-
-
- In article <1992Nov17.185830.1520@bnlux1.bnl.gov>, lally@pmdb.sep.bnl.gov (Keith Lally) writes:
- |>
- |> Mark,
- |>
- |> I am referring to fields of the TEXT data type. Some of my help messages
- |> will exceed 255 bytes so char and varchar are no help. An entry field on
- |> the form can have a maximum length of 2048 chars or more but how do I
- |> retrieve the TEXT data and stuff it into the entry field? One way is to
- |> have the stored procedure read the first 255 bytes of the text, put it into
- |> parameter1 of type char, then read the next 255 bytes and stuff it into
- |> another parameter. On the APT side I could then concatenate the params
- |> together and put the result in the entry field. This seems like a real
- |> kludgy way to do what should be an easy operation.
-
- I haven't had a reason to deal with TEXT . . . :-(
-
- I know this may not help either . . . . buttttttttttttt .. . . .
-
- Does your text have to be stored as TEXT? . . .
-
- Cut the text up into 255 character blocks, store in a table with each
- 255 block having a sequence number assigned to it, use a sqlrow to
- select the text in sequence number order, step through the sqlrow
- appending each subsequent 255 block to your entry field. NOTE: Appending
- to the end of a field takes more time than appending on the front of
- the field(just an extra $0.02 worth), but you will probably only notice
- this if you're appending say, 20+ chunks?
-
- |>
- |> I also remember reading in one of the manuals that parameters passed between
- |> the server and an apt application can only be 255 chars in length. Has
- |> anyone else had experience with this kind of problem?
-
- Haven't had to deal with this problem . . . .I do know that in APT 4.?
- that there's a 512 character limitation in the lengths of parameters
- passed between APT screens(suppose to be fixed in APT 5.0). But I
- don't know about the problems between server and APT.
-
- Mark
-
-
-