ASP Classic Named Parameter in Paramaterized Query: Must declare the scalar variable

后端 未结 4 1549
终归单人心
终归单人心 2020-12-06 22:05

I\'m trying to write a parameterized query in ASP Classic, and it\'s starting to feel like i\'m beating my head against a wall. I\'m getting the following error:

4条回答
  •  自闭症患者
    2020-12-06 22:40

    I'm not sure what your query is intended to accomplish. I'm also not sure that parameters are allowed in the select list. MSDN used to have (many years ago, probably) a decent article on where parameters were allowed in a query, but I can't seem to find it now.

    OTTOMH, your attempts to supply the parameter values to ADO look correct. Does your query execute if you do something like this?

    SELECT 1 FROM sometable WHERE somefield = @something
    

提交回复
热议问题