hi,
I have a stored procedure in SQL 2008 which does certain calculations based on business rules. In order to do the calculations, we need to supply data in the form of file in .csv format. As of now, the stored procedure is unable to process the data, if the data file has a header.
My request is, is there a way we can handle this situation by implementing some validation checks in the beginning?
I mean check the column header for the required format, and if the format doesnt matches, give an error message saying calculation is not applicable.
Can we do like this? Please let me know. This helps me a lot.
Thanks,
VIJSQL.
I have a stored procedure in SQL 2008 which does certain calculations based on business rules. In order to do the calculations, we need to supply data in the form of file in .csv format. As of now, the stored procedure is unable to process the data, if the data file has a header.
My request is, is there a way we can handle this situation by implementing some validation checks in the beginning?
I mean check the column header for the required format, and if the format doesnt matches, give an error message saying calculation is not applicable.
Can we do like this? Please let me know. This helps me a lot.
Thanks,
VIJSQL.