Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clarion And Pervasive SQL Problems

Status
Not open for further replies.

sagat77

Programmer
Oct 17, 2003
1
0
0
MX
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.


Saludos.
Rafael Sotelo
SCSI S.A. de C.V.
Tel. 616-25-27
 
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).
 
Hi,

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)
END
OtherField1 LONG
OtherField2 LONG
OtherField3 LONG
OtherField4 LONG
END
END

Valery.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top