Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2004, 01:29 PM
Registered User
 
Join Date: Sep 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to davidlars99
Default English Query Problem is Driving me Nuts...

it doesn't show me any error messages, connection is right all rights are assign read/write/script access to the virtual directory and still it's not working, if you have ever done this in ASP please save me :)


<HTML>
<HEAD>
</HEAD>
<BODY>

<form name="f1" action="northwind.asp" method="post">
<input type="text" name="txt1" value="">
<br><br>
<input type="submit" name="sbmt" value="Search...">
</form>

<%

if request.servervariables("content_length")>0 then
   Dim go, eqr, eqs
   set eqs=server.createobject("Mseq.Session")
   eqs.InitDomain("C:\Northwind\Northwind.eqd")

   set cn=server.createobject("ADODB.Connection")
   set rs=server.createobject("ADODB.Recordset")
   cn.open "Driver=SQL Server;SERVER=(local);UID=sa;PWD=xxxxxx;DATABASE=N orthwind"

   set rs.ActiveConnection=cn
   rs.CursorType=adOpenStatic

   set eqr=eqs.ParseRequest(request("txt1"))

   do until go=false
      select case eqr.type

         case nlResponseCommand
            if eqr.commands(0).CmdID=nlCmdQuery then
               response.write(eqr.Restatment)
               rs.Open eqr.commands(0).SQL
               response.write(0)
               cmdExecute.Enabled=False
            elseif eqr.commands(0).CmdID=nlCmdAnswer then
               response.write(eqr.commands(0).Answer)
            end if
            go=True

         case nlResponseError
            go=True
         case nlResponseUserClarify
            go=False
      end select
   loop
end if

%>

</BODY>
</HTML>


I took this example from Robert Viera's SQL Server 2000 Programming






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! CommandButton Caption Driving Me Nuts! phoenixblue C# 0 September 29th, 2006 03:19 AM
This is driving me nuts... Klesk C# 3 January 27th, 2006 06:51 PM
Driving me nuts! bhd8ball Classic ASP Professional 2 January 7th, 2005 12:55 AM
This is driving me nuts!!! (datagrid in .ascx) dragonoodle General .NET 2 December 13th, 2004 03:48 PM
Type mismatch - Going Nuts ivanv ASP.NET 1.0 and 1.1 Basics 1 July 10th, 2003 03:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.