Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello all

i have create an exe for some database operations, this exe needs to be run on each minute and do some database operations.
when i create a shceduler and configure it for 1 minute run it will run fine.
but, when i select "Run whether user is logged on or not" my scheduler call exe and exe will exist in a second why ?
if i double click on exe it run fine. what is the problem of windows task scheduler ?
if i select 'Run when user logged on' it will run properly. is it access permission issue ?
Please help me to resolve the things

Thanks in advanvce
koolprasad2003
Posted

1 solution

Did you setup the Task to run as Local System? If your connection string in your application is using "Integrated Security", it's not going to work because the Local System account probably doesn't have permissions to your database. You should be using a dedicated account for that process to use to login to the SQL Server.
 
Share this answer
 
Comments
koolprasad2003 4-Sep-13 2:05am    
Thanks for reply Dave.
My program contains a SQL connection string and SQL is installed on same machine. what changes do i need to do so that it will work for me ?

Thanks in advance
koolprasad2003
Dave Kreskowiak 4-Sep-13 7:10am    
Considering I know nothing about your SQL environment, how the hell should I know??

But, you can find out for yourself by going to http://www.connectionstrings.com.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900