If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > how set length of field that doesn't allow nulls

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-21-04, 11:19
natalies natalies is offline
Registered User
 
Join Date: May 2004
Posts: 8
how set length of field that doesn't allow nulls

I am using pervasive 2000i and
using the table designer I created a table which
has two fields both not allowing null values i.e
firstname 10 characters not null
surname 10 characters not null

then when I save the table the length is NOT 20
btreive set's it to 22 or 24

but Had I created the above table where both the fields
can be null the size is 20

How can I get round with creating a table which has the above fields
but both can't be null and size to be 20????

THis is urgent As the data files have been generated by CLIENT and I need the define the ddfs properly.
This pervasive product is giving me so much hassle.
Reply With Quote
  #2 (permalink)  
Old 05-21-04, 11:48
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Create Table Name (firstname char(10) not null, surname char(10) not null) creates a table that has a 20 byte record and does not allow nulls from the ODBC interface for me. If you've got other fields and they do not have the NOT NULL keywords and do not have the True Null Byte Indicator, then the record structure could be off.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On