Hi
Scenario - I need to send some 150 reports . At present my old team mate created c# code and created 150 exe with same code.
So in each report folder it have 1sub folder with SQL script another 1cofig file and and exe.
Now it came to me to simplify due to dependency issue.
Now my approach is inserting this SQL in Oracle table as clob. (1 report may have 2 or 3 SQL files and send with different excel )
My approach works correctly if we are sending in 2 differ files.
But some reports it have 2 SQL and reports add in same excel with different sheet. I stuck here.
Here my code looks like.
Connecting to Oracle db
Running that select statement to fetch the SQL query
While(reader)
Assigning columns to different variables here. (Because some report format is csv or Xlsx or text)
Now For loop
Scenario - I need to send some 150 reports . At present my old team mate created c# code and created 150 exe with same code.
So in each report folder it have 1sub folder with SQL script another 1cofig file and and exe.
Now it came to me to simplify due to dependency issue.
Now my approach is inserting this SQL in Oracle table as clob. (1 report may have 2 or 3 SQL files and send with different excel )
My approach works correctly if we are sending in 2 differ files.
But some reports it have 2 SQL and reports add in same excel with different sheet. I stuck here.
Here my code looks like.
Connecting to Oracle db
Running that select statement to fetch the SQL query
While(reader)
Assigning columns to different variables here. (Because some report format is csv or Xlsx or text)
Now For loop