> list of some strange jobs created in sol server.
> one of the job contains the following code
>
> "Cmd /c Copy ias\dnary.mdb dnary.mdb
This isn't SQL code, this looks like a batch file. Which wouldn't run
directly from a SQL job unless it was saved as a .bat file and run using
xp_cmdshell (or something along those lines).
> How to protect the sqlserver from creating jobs by unauthorized persion,
Well, the first thing is, don't use SA or a similarly privileged account in
your web apps. Give them rights only in the databases they need, and only
to execute the stored procedures you define for them. Avoid SQL injection
by using stored procedures, using strongly-typed parameters, and validating
input. If you give your applications sysadmin rights, and blindly execute
user-entered strings as part of any SQL statement, you are begging for this
kind of thing to continue happening.
A