 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Man Utd Guest
|
Posted: Fri Sep 23, 2005 12:28 am Post subject: Update table structure |
|
|
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
|
Posted: Fri Sep 23, 2005 1:06 am Post subject: Re: Update table structure |
|
|
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
|
Posted: Fri Sep 23, 2005 1:14 am Post subject: Re: Update table structure |
|
|
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
|
Posted: Sun Sep 25, 2005 10:38 am Post subject: Re: Update table structure |
|
|
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
|
Posted: Sun Sep 25, 2005 11:32 am Post subject: Re: Update table structure |
|
|
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
|
Posted: Sun Sep 25, 2005 12:51 pm Post subject: Re: Update table structure |
|
|
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
|
Posted: Sun Sep 25, 2005 1:37 pm Post subject: Re: Update table structure |
|
|
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 |
|
 |
|
|
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
|
|