Add a parameter to the SQL:
delCmd.CommandText="DELETE * FROM post WHERE (pos_ID = ?)"
delCmd.Parameters.Append delCmd.CreateParameter("posid", adInteger, adParamInput) ' input parameter
delCmd.Parameters("posid").Value = postit
More Related Contents:
- Convert UTF-8 String Classic ASP to SQL Database
- Using Stored Procedure in Classical ASP .. execute and get results
- SQL insert into database with apostrophe
- How to make a parametrized SQL Query on Classic ASP?
- operation not allowed when the object is closed when running more advanced query
- Error trying to call stored procedure with prepared statement
- Making a query with a single row out
- Using group by on multiple columns
- Passing an array of parameters to a stored procedure
- SQL Server : GROUP BY clause to get comma-separated values [duplicate]
- Return multiple columns of the same row as JSON array of objects
- How to update Identity Column in SQL Server?
- How to log SQL statements in Grails
- Is there common street addresses database design for all addresses of the world? [closed]
- SQL Between clause with strings columns
- Selecting the second row of a table using rownum
- Does Oracle store trailing zeroes for Number data type?
- Why can’t I use column aliases in the next SELECT expression?
- SQL: getting the max value of one column and the corresponding other columns [duplicate]
- Does an empty SQL table have a superkey? Does every SQL table have one?
- How to delete in MS Access when using JOIN’s?
- SQLite3 UNIQUE constraint failed error
- How to count in SQL all fields with null values in one record?
- Repeat Rows N Times According to Column Value
- How to change column order in a table using sql query in sql server 2005?
- Getting results between two dates in PostgreSQL
- Conversion failed when converting the varchar value ‘simple, ‘ to data type int
- INNER JOIN vs multiple table names in “FROM” [duplicate]
- sql swap primary key values
- DataReader.GetString() via columnname