R
rcm29
MyCase:
I have an excel file Example1.xls which has file columns say A,B,C,D,E.
Now when some error occurs i have to retrieve data from the input row index
(this im doing by retrieving from the dataset) and insert the same data along
with a new error message into the same file Example1.xls. So as a result my
file should now have 6 columns A,B,C,D,E and ErrorMessage.
I tried using ALTER table query to add a new column. But it doesnt work...!!
It gives error " Invalid Operation".
another option would be to copy the contents of the file into a temp table
add a column and then copy it back to my file. but this would not be a very
optimal solution when the file has a lot of data.
Is there any other way to add a new column to the existing excel file??
Please help.
Regards,
Resh
I have an excel file Example1.xls which has file columns say A,B,C,D,E.
Now when some error occurs i have to retrieve data from the input row index
(this im doing by retrieving from the dataset) and insert the same data along
with a new error message into the same file Example1.xls. So as a result my
file should now have 6 columns A,B,C,D,E and ErrorMessage.
I tried using ALTER table query to add a new column. But it doesnt work...!!
It gives error " Invalid Operation".
another option would be to copy the contents of the file into a temp table
add a column and then copy it back to my file. but this would not be a very
optimal solution when the file has a lot of data.
Is there any other way to add a new column to the existing excel file??
Please help.
Regards,
Resh