Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How can display the sql before the error occurs?

Reply
Thread Tools

How can display the sql before the error occurs?

 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      11-30-2007
Big Moxy wrote:
> On Nov 29, 5:10 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
> wrote:
>> Big Moxy wrote:
>>
>>> I placed it where I did because the initial page display uses sql =
>>> "SELECT * FROM [" & tables(tableID) & "] ORDER BY ID ASC" which
>>> works just fine. I will never get the search option if the
>>> Response.End is placed where you suggest.

>>
>> I don't get you. if you want to troubleshoot the sql statement, then
>> you have to print it out before it is executed ...
>> --
>> Microsoft MVP - ASP/ASP.NET
>> Please reply to the newsgroup. This email account is my spam trap so
>> I don't check it very often. If you must reply off-line, then remove
>> the "NO SPAM"

>
> Perhaps you are not understanding the sequence of events.


It's irrelevant. Your goal at this point is not to make the page run to
completion. Your goal at this point is to discover what the sql string
contains (at least, that was the goal you stated in your opening post).
Nothing else that happens after the sql string is built is relevant until
you determine that your sql statement is correct. Once you have determined
that the sql statement is what you expect it to be, then you can start
worrying about getting the rest of the page to run.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      11-30-2007
Big Moxy wrote:

> So as you can see if I place the Response.End after the End If and
> before the Open I will never get a display.


Oh damn - my previous repoly was *******s.
I need to look at this again tomorrow

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      11-30-2007
Big Moxy wrote:
> NEVER MIND. I WILL SIMPLY SPLIT THE PAGES AND TROUBLESHOOT THE SEARCH
> RESULTS SEPARATELY.


Oh shoot - you got to this too quick. You're right - my previous reply was
crap - I need to shut the computer off ... now.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
p byers
Guest
Posts: n/a
 
      11-30-2007
Just a thought
Why not use "On Error" to control the Response.Write and Response.End

ByTheWay, you used "Response.End()" - I dont us the brackets for this
statement

Pete (Northolt UK)

Big Moxy wrote:

> I'm getting this error on my asp/access page. It's a sql error
> triggered by Recordset1.open sql,conn,1,1. The sql is constructed from
> user input on a search page.
>
> ADODB.Recordset error '800a0bb9'
> Arguments are of the wrong type, are out of acceptable range, or are
> in conflict with one another.
>
> The problem I'm having is getting a Response.Write(sql) to actually
> display the sql code before the open statement.
>
> Can someone please help me display my generated sql code?
>
> Thank you!


 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      11-30-2007
Big Moxy wrote:

>
> NEVER MIND. I WILL SIMPLY SPLIT THE PAGES AND TROUBLESHOOT THE SEARCH
> RESULTS SEPARATELY.


Sorry about yesterday. Are you still here? Do you still need help with
this?

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
SQL Reference, SQL Queries, SQL help ecoolone ASP .Net 0 01-03-2008 10:58 AM
Before Sunset & Before Sunrise matt r DVD Video 2 11-25-2004 08:37 AM
CHtmlView: How to read html text before display, change and give to display changed html code? Marek Kurowski C Programming 1 08-18-2004 06:41 PM
Can I make browsers display contents of a window triggered by onClick before page finishes loading? Graham J Javascript 2 09-20-2003 08:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57