Create a text box and submit button, on click
use method ="post"
next page
use request.form("Name of tHE text field"
u can use ADO to connect to ur database
% Set Conn = Server.CreateObject("ADODB.Connection"
' The following line must be changed to reflect your data source info
Conn.Open "dsnname", "Login", "PASSWWD"
set cmd = Server.CreateObject("ADODB.Command"
set cmd.ActiveConnection = Conn
' Specify the name of the stored procedure you wish to call
cmd.CommandType = 4
cmd.CommandText = "sp_YOUR STOREDPROCEDURE"
cmd.parameters.refresh
cmd.parameters(1).value= Request.form("yourtextboxname"

set rs=cmd.execute()
rs.movefirst
do while not rs.eof
response.write(rs(0))
rs.movenext
loop
</Form>
and the stored procedure which u will call will accept one parameter and it will contain
select * from yourtablename where field=@textbox
Try this