Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 29th, 2004, 01:29 PM
Registered User
 
Join Date: Sep 2004
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:27 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.