Hi
my DBA is going "fishing" for a month, so I am temporary acting as a DBA, but my knowledge and experience about db and Sybase is so little, and I am manipulating a production system. I don't know what to do. Please help.
I have a table and there is one field (A) was set up with "smallint", however, now the data change, it is bigger than 2 digits, so I have to change the field (A) to "int".
My questions are:
1) If I just go ahead and change the field name in the table, is there any impact to the old data? Will it stub with 0 or NULL or I lost all of them?
2) What is the best performance to do the change? Should I disconnect all users accessing to this table/database first (How do I do it?), then create a temporary table and dump all the data to this temp table. Next drop the current table and create new table with field (A) changed as above, then "bcp in" or "insert" the data from temp table back to the new table? If I am doing this, what precautions should I pay attention to? Or what other method that I can do?
Thanks
my DBA is going "fishing" for a month, so I am temporary acting as a DBA, but my knowledge and experience about db and Sybase is so little, and I am manipulating a production system. I don't know what to do. Please help.
I have a table and there is one field (A) was set up with "smallint", however, now the data change, it is bigger than 2 digits, so I have to change the field (A) to "int".
My questions are:
1) If I just go ahead and change the field name in the table, is there any impact to the old data? Will it stub with 0 or NULL or I lost all of them?
2) What is the best performance to do the change? Should I disconnect all users accessing to this table/database first (How do I do it?), then create a temporary table and dump all the data to this temp table. Next drop the current table and create new table with field (A) changed as above, then "bcp in" or "insert" the data from temp table back to the new table? If I am doing this, what precautions should I pay attention to? Or what other method that I can do?
Thanks