![]() | |
#11
| |||
| |||
|
#12
| |||
| |||
|
|
If I have a spreadsheet with "Column Headers" (which become field names in Oracle) such as "Wtd Avg Variable O & M Costs $/MWh" I'd like it to convert that to "Wtd_Avg_Variable_O_M_Costs_MWh". Any after determining the field type for a given field, why can't the tool go through the data and determine the length of each string in that field. Then determine the max string length for that field. Use that max as the length of the field. Use similar methods for numeric fields. Once these things have been done, all I need is the create table SQL statement... the rest is easy. |
#13
| |||
| |||
|
|
Anyway they can be easily renamed. |
|
The following procedure is **only** to determine such maxima. Then, you can use these value to substitute the default values in "Table setup" for the export to DBMS: |
#14
| |||
| |||
|
|
Anyway they can be easily renamed. Easily?!? I'm the one that faces hundreds of tables (data collection projects) that commonly have >20 columns! You do the math... Not only that, but there is a limitation on the maximum field name length. Correct me if i'm wrong, but I believe the name can't be longer than 30 chars. I really don't like having to go back to determine which field name is causing my create table statement to error out. The following procedure is **only** to determine such maxima. Then, you can use these value to substitute the default values in "Table setup" for the export to DBMS: I want a tool that will do that for me. Seriously, what century are we living in? Maybe I should be asking if anyone has the appropriate punch cards... |
#15
| |||
| |||
|
|
Sometimes (it may not be your case), when one feel there is a lack of tools, it may also be worth considering to take this as an hint to think about the approach being used. |

#16
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |