Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 57729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:44:12+00:00 2026-05-10T17:44:12+00:00

What is a strong way to protect against sql injection for a classic asp

  • 0

What is a strong way to protect against sql injection for a classic asp app?

FYI I am using it with an access DB. (I didnt write the app)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:44:13+00:00Added an answer on May 10, 2026 at 5:44 pm

    Stored Procedures and/or prepared statements:

    https://stackoverflow.com/questions/1973/what-is-the-best-way-to-avoid-sql-injection-attacks

    Can I protect against SQL Injection by escaping single-quote and surrounding user input with single-quotes?

    Catching SQL Injection and other Malicious Web Requests

    With Access DB, you can still do it, but if you’re already worried about SQL Injection, I think you need to get off Access anyway.

    Here’s a link to the technique in Access:

    http://www.asp101.com/samples/storedqueries.asp

    Note that what typically protects from injection is not the stored procedure itself, but that fact that it is parameterized and not dynamic. Remember that even SPs which build dynamic code can be vulnerable to injection if they use parameters in certain ways to build the dynamic code. Overall, I prefer SPs because they form an interface layer which the applications get to the database, so the apps aren’t even allowed to execute arbitrary code in the first place.

    In addition, the execution point of the stored procedure can be vulnerable if you don’t use command and parameters, e.g. this is still vulnerable because it’s dynamically built and can be an injection target:

    Conn.Execute('EXEC usp_ImOnlySafeIfYouCallMeRight '' + param1 + '', '' + param2 + ''') ; 

    Remember that your database needs to defend its own perimeter, and if various logins have rights to INSERT/UPDATE/DELETE in tables, any code in those applications (or compromised applications) can be a potential problem. If the logins only have rights to execute stored procedures, this forms a funnel through which you can much more easily ensure correct behavior. (Similar to OO concepts where objects are responsible for their interfaces and don’t expose all their inner workings.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Python has this wonderful way of handling string substitutions using dictionaries: >>> 'The %(site)s
Is there some way I can define String[int] to avoid using String.CharAt(int) ?
Is there a way to escape ( or protect ) special characters in a
Typical way of creating a CSV string (pseudocode): Create a CSV container object (like
What is the best way to store string data across postback. I need to
Is there any way to parse a string in the format HH:MM into a
Is there any way to format a string by name rather than position in
Given the string ThisStringHasNoSpacesButItDoesHaveCapitals what is the best way to add spaces before the
Is there any way to get a String[] with the roles a user has
Whats the best way to separate the string, Parisi, Kenneth into Kenneth and Parisi?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.