BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Update table structure

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Man Utd
Guest





PostPosted: Fri Sep 23, 2005 12:28 am    Post subject: Update table structure Reply with quote



We have application running on several customer's machines. However, due to
enhancements we need to modify the database structure, as we found a problem
is the database we are using does not support ALTER TABLE ADD COLUMN
statement.
So this is a serious problem as we cannot update client's database except
replace their database with the blank one.

Old Employee table:
FieldA
FieldB

New Employee table:
FieldA
FieldB
FieldC

One option I am thinking is:
1) Create a new table called Employee_New with these 3 fields
2) Copy the Employee table into Employee_New
3) Drop the Employee table
4) Rename the Employee_New to Employee



What alternative will be?


Back to top
Alfred ten Hoeve
Guest





PostPosted: Fri Sep 23, 2005 1:06 am    Post subject: Re: Update table structure Reply with quote



If you tell us what data-accesscomponents and database you use, we probably
can help you.

Alfred.


"Man Utd" <alanpltseNOSPAM (AT) yahoo (DOT) com.au> schreef in bericht
news:43334bd0$1 (AT) newsgroups (DOT) borland.com...
Quote:
We have application running on several customer's machines. However, due
to
enhancements we need to modify the database structure, as we found a
problem
is the database we are using does not support ALTER TABLE ADD COLUMN
statement.
So this is a serious problem as we cannot update client's database except
replace their database with the blank one.

Old Employee table:
FieldA
FieldB

New Employee table:
FieldA
FieldB
FieldC

One option I am thinking is:
1) Create a new table called Employee_New with these 3 fields
2) Copy the Employee table into Employee_New
3) Drop the Employee table
4) Rename the Employee_New to Employee



What alternative will be?





Back to top
Jan Ferguson
Guest





PostPosted: Fri Sep 23, 2005 1:14 am    Post subject: Re: Update table structure Reply with quote



Man Utd wrote:

Quote:
We have application running on several customer's machines. However,
due to enhancements we need to modify the database structure, as we
found a problem is the database we are using does not support ALTER
TABLE ADD COLUMN statement.
So this is a serious problem as we cannot update client's database
except replace their database with the blank one.

Old Employee table:
FieldA
FieldB

New Employee table:
FieldA
FieldB
FieldC

One option I am thinking is:
1) Create a new table called Employee_New with these 3 fields
2) Copy the Employee table into Employee_New
3) Drop the Employee table
4) Rename the Employee_New to Employee



What alternative will be?

There might be other options but you fail to state which database you
are currently using.

--
Regards,
Jan Ferguson

Back to top
Man Utd
Guest





PostPosted: Sun Sep 25, 2005 10:38 am    Post subject: Re: Update table structure Reply with quote

We are using TEasyTable from AidAim.

"Jan Ferguson" <jbfergusonATdatasoftwareDOTnet> wrote

Quote:
Man Utd wrote:

We have application running on several customer's machines. However,
due to enhancements we need to modify the database structure, as we
found a problem is the database we are using does not support ALTER
TABLE ADD COLUMN statement.
So this is a serious problem as we cannot update client's database
except replace their database with the blank one.

Old Employee table:
FieldA
FieldB

New Employee table:
FieldA
FieldB
FieldC

One option I am thinking is:
1) Create a new table called Employee_New with these 3 fields
2) Copy the Employee table into Employee_New
3) Drop the Employee table
4) Rename the Employee_New to Employee



What alternative will be?

There might be other options but you fail to state which database you
are currently using.

--
Regards,
Jan Ferguson



Back to top
Jan Ferguson
Guest





PostPosted: Sun Sep 25, 2005 11:32 am    Post subject: Re: Update table structure Reply with quote

Man Utd wrote:

Quote:
We are using TEasyTable from AidAim.

"Jan Ferguson" <jbfergusonATdatasoftwareDOTnet> wrote in message
news:433356f4$1 (AT) newsgroups (DOT) borland.com...
Man Utd wrote:

We have application running on several customer's machines.
However, due to enhancements we need to modify the database
structure, as we found a problem is the database we are using
does not support ALTER TABLE ADD COLUMN statement.
So this is a serious problem as we cannot update client's database
except replace their database with the blank one.

Old Employee table:
FieldA
FieldB

New Employee table:
FieldA
FieldB
FieldC

One option I am thinking is:
1) Create a new table called Employee_New with these 3 fields
2) Copy the Employee table into Employee_New
3) Drop the Employee table
4) Rename the Employee_New to Employee



What alternative will be?

There might be other options but you fail to state which database
you are currently using.

--
Regards,
Jan Ferguson

In re-reading your post I noted that your update is very similar to a
question I had. Sorry but I don't know much about TEasyTable. You might
want to note what Bill and others told me with regard to my issue. Does
EasyTable have a database manager utility where you can go on site and
make an update?

--
Regards,
Jan Ferguson

Back to top
Man Utd
Guest





PostPosted: Sun Sep 25, 2005 12:51 pm    Post subject: Re: Update table structure Reply with quote

Yes, it provides a database manager utility to create tables.
Also allows SQL execution. I tried the alter table statement but got error.
I am afraid we will get into trouble if it does not support alter table
statement, it is because as time goes by, more enhancements will be added
and to some points database structure is really need to be modified.

"Jan Ferguson" <jbfergusonATdatasoftwareDOTnet> wrote

Quote:
Man Utd wrote:

We are using TEasyTable from AidAim.

"Jan Ferguson" <jbfergusonATdatasoftwareDOTnet> wrote in message
news:433356f4$1 (AT) newsgroups (DOT) borland.com...
Man Utd wrote:

We have application running on several customer's machines.
However, due to enhancements we need to modify the database
structure, as we found a problem is the database we are using
does not support ALTER TABLE ADD COLUMN statement.
So this is a serious problem as we cannot update client's database
except replace their database with the blank one.

Old Employee table:
FieldA
FieldB

New Employee table:
FieldA
FieldB
FieldC

One option I am thinking is:
1) Create a new table called Employee_New with these 3 fields
2) Copy the Employee table into Employee_New
3) Drop the Employee table
4) Rename the Employee_New to Employee



What alternative will be?

There might be other options but you fail to state which database
you are currently using.

--
Regards,
Jan Ferguson

In re-reading your post I noted that your update is very similar to a
question I had. Sorry but I don't know much about TEasyTable. You might
want to note what Bill and others told me with regard to my issue. Does
EasyTable have a database manager utility where you can go on site and
make an update?

--
Regards,
Jan Ferguson



Back to top
Jan Ferguson
Guest





PostPosted: Sun Sep 25, 2005 1:37 pm    Post subject: Re: Update table structure Reply with quote

Man Utd wrote:

Quote:
Yes, it provides a database manager utility to create tables.

Too bad it doesn't allow you to alter tables as well.

--
Regards,
Jan Ferguson

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.