SQL injection allows anyone to break a SQL statement and destroy your database.
The best way to prevent this is to strip anything you might put into a SQL statement.
A simple SQL Inject would be:
URL Should be: yourpage.asp?ID=1
But someone enters: yourpage.asp?ID=1;Drop Table TableName;
That would drop the table "TableName" from your database!
To prevent that, your number should be filtered, so you would use Clng or Cint
If your passing a string, you only need to filter out one thing, the ' character:
Now you should look up XSS hacks and how to prevent that if you allow user inputs.