Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.258
  HXTT Cobol 5.0.257
  HXTT DBF 7.1.259
  HXTT Excel 6.1.261
  HXTT Json 1.0.229
  HXTT Paradox 7.1.257
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT PDF 2.0.257
  HXTT Text(CSV) 7.1.257
  HXTT Word 1.1.257
  HXTT XML 4.0.258
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT Paradox
Foreign Keys and Table not accessible in Paradox
Vernon
2008-09-17 04:01:14
How to create the following tables in paradox:

CREATE TABLE Supplier (
SupplierNumber INTEGER NOT NULL,
Name VARCHAR(20) NOT NULL,
Address VARCHAR(50) NOT NULL,
Type VARCHAR(10),
CONSTRAINT supplier_pk PRIMARY KEY(SupplierNumber),
CONSTRAINT number_value CHECK (SupplierNumber > 0) )

CREATE TABLE Invoices (
InvoiceNumber INTEGER NOT NULL,
SupplierNumber INTEGER NOT NULL,
Text VARCHAR(4096),
CONSTRAINT invoice_pk PRIMARY KEY(InvoiceNumber),
CONSTRAINT inumber_value CHECK (InvoiceNumber > 0),
CONSTRAINT supplier_fk FOREIGN KEY(SupplierNumber)
REFERENCES Supplier(SupplierNumber)
ON UPDATE CASCADE ON DELETE RESTRICT )

the CONSTRAINT SQL does not work.

Also when I create a table:

CREATE TABLE Supplier (
SupplierNumber INTEGER NOT NULL,
Name VARCHAR(20) NOT NULL,
Address VARCHAR(50) NOT NULL,
Type VARCHAR(10))

When I try to access the table in Paradox Version 4.0 message recieved:

"Supplier table is damaged"

When go into "Tutility" program I geta table format error:

The table header is corrupt, or
the Paradox file format for this
table is a later version than
TUTILITY 4.0 supports.

Was this table created by Paradox
3.5 or 4.0?

Hope you can answer these questions! I looked in your "FAQ" and doc files and could not find anything.

Thanks,
Vernon

Re:Foreign Keys and Table not accessible in Paradox
HXTT Support
2008-09-22 03:09:23
>the CONSTRAINT SQL does not work.
It supports PRIMARY KEY, but doesn't support Foreign Keys and CONSTRAINT.

>Was this table created by Paradox 3.5 or 4.0?
You should try versionNumber=3 connection property.
versionNumber Paradox Version Number. You can use null, "3"(version 3.0), "3.5"(version 3.5),"4"(version 4.x), "5"(version 5.x), or "7"(version 7.x~11.x). This parameter is only used for CREATE TABLE. Default value: 7

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap