Answered
Stored procedures - when to use?
Hello
I'm a self-taught ASP developer who never found out about stored procedures until recently. I've got a hacker trying to put me out of business, livelihood, psychological health etc. by repeatedly attacking my database with SQL injections. So I have thousands of pages on 30 websites to go through and recode, using SPs.
An easy - and probably stupid question - do I need to use SPs when there is no user variable involved? i.e. I know they're required when I want to
"SELECT Field FROM Table WHERE ID =" & Request("Variable")
But is the following format OK, or should it be converted to an SP too?
"SELECT Field FROM Table "
Thanks for any guidance!
Square
I'm a self-taught ASP developer who never found out about stored procedures until recently. I've got a hacker trying to put me out of business, livelihood, psychological health etc. by repeatedly attacking my database with SQL injections. So I have thousands of pages on 30 websites to go through and recode, using SPs.
An easy - and probably stupid question - do I need to use SPs when there is no user variable involved? i.e. I know they're required when I want to
"SELECT Field FROM Table WHERE ID =" & Request("Variable")
But is the following format OK, or should it be converted to an SP too?
"SELECT Field FROM Table "
Thanks for any guidance!
Square
