I am not sure if Brian's suggested code would work. I assume that code pertains to ADO.Net and cannot be used for classic ASP. If wolfpack391 is looking for Classic ASP code then ADO command object supports only the following Methods.
Cancel - Cancels an execution of a method
CreateParameter - Creates a new Parameter object
Execute - Executes the query, SQL statement or procedure in the CommandText property
Though it works without having a connection object, for closing the connection explicity later, I would suggest you to use a connection object initially and then a command object, and finally close connection object, if you are looking to do that.
You can take a look at
ADO Command Object. Also I would suggest you to take a look at the ADO Objects Hierarchy/Model for better understanding.
ADO Object Model
Hope that helps.
Cheers!
_________________________
- Vijay G
Strive for Perfection