I have an asp.net core application which inserts data into sql server. It runs fine in command line but when I put it in a batch file and create a task to run that batch file every 5 minutes in task scheduler, it is not working properly.
It shows task as running but fresh records are not getting inserted in sql server.
why?