Please don't post the same question in two forums.
Assuming your connection succeeds and you have defined the adVarChar etc, normally via an include file, then the only thing that jumps out at me is:
Code:
objCommand.Parameters("City") = "London";
JavaScript doesn't understand default object properties so you need:
Code:
objCommand.Parameters("City").value = "London";
Remember this when you try to output using the recordset:
Code:
//var rSet = Server.CreateObject("ADODB.Recordset"); NOT NEEDED
var rSet = dbComm.execute();
if (rSet.EOF && rSet.BOF)
{
//No records
}
else
{
while (!rSet.EOF)
{
Response.Write(rSet.fields(0).value + "<br>");
rSet.moveNext();
}
}
rSet.close();
--
Joe (
Microsoft MVP - XML)