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 > table designer question...

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-05, 08:49
chuk chuk is offline
Registered User
 
Join Date: Oct 2004
Posts: 10
table designer question...

hi all,

when i create a table with the wizard, i can later go in thru the
table designer & change data types.

however, after i create a table with sql, the designer will not
allow any changes.

any reason for this?

tia
Reply With Quote
  #2 (permalink)  
Old 01-29-05, 11:04
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
What's your CREATE TABLE statement? Are you able to edit any fields?
DUmb question, why are you creating a table them modifying it? Why not make the changes in the SQL and create it that way?
__________________
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
  #3 (permalink)  
Old 01-31-05, 09:26
chuk chuk is offline
Registered User
 
Join Date: Oct 2004
Posts: 10
i am able to edit field contents just not the fields themselves...

i'm in design stages of these tables, plus i guess i'm what you'd call
a newbie with pervasive...i wanted to experiment with all methods
available to the developer & noticed the differences..

i'm not quite sure what you mean in the last part of your reply,
are you saying not to bother with the wizard? i sort of prefer doing
things manually anyway unless a wizard is a real timesaver..

thanks..

here's my create table statement:

create table MyTestAppts
(ApptID IDENTITY,
CustID int,
CustomerNumber char(20),
NotesID int,
CustOnFile char (1),
ApptDate char (10),
ApptMonth int,
ApptDay int,
ApptYear int,
ApptTime char (8),
BegTimeSlot int,
NumberOfSlots int,
Crew int,
Zone char (20),
NumberOfUnits int,
ApptInsertDate date,
ApptInsertTime time,
Filler1 char (10),
Filler2 char (10),

PRIMARY KEY (ApptID))
Reply With Quote
  #4 (permalink)  
Old 01-31-05, 10:35
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
I just tried your query here and I see the same behavior. I then noticed the "PRIMARY KEY" clause. That's what's keeping you from modifying the table. Because you're enabling Referential Integrity constraints, you can't modify the table without removing them. As a test, I removed the PRIMARY KEY clause and was able to modify the table.
__________________
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
  #5 (permalink)  
Old 01-31-05, 17:07
chuk chuk is offline
Registered User
 
Join Date: Oct 2004
Posts: 10
hey thanks..
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