Board index » delphi » Obviously overlooking something?
Ellinor Jensen
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Ellinor Jensen
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Obviously overlooking something?
Hello,
now I'm a bit confused. I have a Table1 needed to be restructured. I use Database Desktop to make a new Table2 borrowing the structure of Then it can't be done because the structure is not the same, is the error How can I then easy fill new structures with old structures data? I mean, I can't use Database Desktop to directly restructure my customers -- There's no such thing as an innocent user |
Dima Maziu
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Obviously overlooking something?... Quote
table2 will probably take you around 5 minutes. I suspect its easier and faster than mucking around with DBD or datapump... Dima |
PR
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Obviously overlooking something?Ellinor Jensen <elli...@online.no> wrote Quote> Hello, just alter the structure of the existing table. But the cleanest way is to include the restructuring in the new program update. Check the local SQL help file how this can be done. Look for ALTER TABLE etc. Peter Reber |
David Gra
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Obviously overlooking something?QuoteEllinor Jensen wrote: property of TBatchMove. Granted that this is probably not the case (most tables I work with have columns added to them). However, I suspect that MAPPINGS will work if the destination table has more columns, so this could be a good chance. Just enter the names of all the columns in the old table eg columnname, If the name has changed, then supply the new name thus : oldname=newname. It should work. Have a look in the Delphi help under the Mappings property or have a look at the example on my Web Page www.pcug.org.au/~graydr to get a feel. The other possiblility is to use SQL to populate the table .There is a special INSERT INTO table Not sure whether this is actually possible with the BDE but it is a solution. Quote> How can I then easy fill new structures with old structures data? but have never done this myself. |
Ellinor Jense
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Obviously overlooking something?Thank you for the answer. It seems that it's no way around, but I hoped there was a way to avoid 'manually' coding the name of 110 fields/coloumns. Thanks anyway. :) Quote"David Gray" <gra...@NOSPAM.pcug.org.au> wrote in message Quote> Ellinor Jensen wrote: |
PR
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Obviously overlooking something?Ouch! How painful and a horror to maintain. I NEVER restructure manually or even use batchmove to restructure but I do it directly on the table. There are various methods depending on what you need to do. (Almost) anything can be done using SQL (ALTER TABLE) and fields can also be added using a table and AddFields. What is more difficult is to change the field type of to change the size of a string field, there you need to make BDE calls directly or find a work-around. Using batchmove just do the trick here without objecting. It is well worthwhile to dig into this restructure thing deeper. Peter Reber QuoteEllinor Jensen <elli...@online.no> wrote in message news:94A75.5227$MS3.108831@news1.online.no... |
1. TMemo Selection Color (What Am I Overlooking??)
2. Cancel method - I obviously don't understand it!
3. Is there something like MSDN from Borland?
4. how do u make something like this ?
6. Need something like readkey
7. Something Nice and easy to calculate your GPA
8. REQ: source or something about playing mp3 from pascal/delphi