Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Clarion And Pervasive SQL Problems

Clarion And Pervasive SQL Problems

Clarion And Pervasive SQL Problems

Hi all,
I just started using Pervasive SQL with Clarion 5.5, but i got some errors, when the application tries to create a table who contains a string(1000) field, returns me the following error: "Maximum column length exceeded".
Now, when i try to export from Pervasive to Clarion this table using LongVarChar for the string(1000) field, Clarion don't recognize this data type.
What data type can i use for big strings(1000 or more chars)?
Thanks for your help.

Rafael Sotelo
SCSI S.A. de C.V.
Tel. 616-25-27

RE: Clarion And Pervasive SQL Problems

I do not how Pervasive handles it but in MS-SQL if you want to have a string field more that 8000 bytes then I would define a TEXT field on the Database and use CSTRING(n) in Clarion.

Also the equivalent of varchar(n) is CSTRING(n) not STRING(n).

RE: Clarion And Pervasive SQL Problems


I think that Pervasive.SQL limits the length of a string to 254 caracters (??). Maybe you could try using a group :

PervasiveTable  FILE,DRIVER('Scalable'),CREATE
Record              RECORD,PRE()
TheLongString               GROUP
Part1                         STRING(250)
Part2                         STRING(250)
Part3                         STRING(250)
Part4                         STRING(250)
OtherField1                 LONG
OtherField2                 LONG
OtherField3                 LONG
OtherField4                 LONG


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close