Create a task in SQL or Windows Server to clean a directory nightly -


i have temp directory on website users export data in .csv files.

the newer intranet apps delete file after it's sent client legacy apps leave files in directory.

i'd create task clean directory nightly. there can .csv files , directories files in them.

basically want run:

del *.* /s rd /s 

...every night @ midnight.

would love sql maintenance task runs on actual sql server , doesn't work mapped drives (unless i'm missing something).

how 1 go performing task?

can done through sql server somehow?

you have option of creating "jobs" run stored procedures or bits of code. these jobs can scheduled run daily, weekly, etc. check out thread: how can create sql agent job in sql server 2008 standard?


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -