Small background: I am the only programmer of this company. I work with existing structures.
However, the company has a dll (Database.dll), which contains "all the interactions I need with databases." Like in, it has Query() , Update() , Insert() , etc. Now the project that I am writing sets the link to Database.dll. My project accepts zero user input. The closest to the user is a drop-down list from which the user can select a date. Not having much experience with this, I'm curious if I still need to worry about SQL injections? And if so, will the request be written as
var query = string.Format("SELECT timestamp FROM table1 WHERE date = \"{0}\" AND measured_dist = bit_loc AND rop > 0" , Date))
enough as a parameterized query? Keep in mind that all query execution is handled by the pre-existing Query() , which, as I was told, I need to use and cannot edit.
EDIT
This program is a WinForm application.
source share