Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > SQL Query Causing Inifinate Output

Reply
Thread Tools

SQL Query Causing Inifinate Output

 
 
Philip McCracken
Guest
Posts: n/a
 
      06-21-2004
When I change the "aplink.withdrawn" to include a new field with a
similar name "aplinks.pwithdrawn,aplinks.awithdrawn", the output in the
web page is blank and un-ending. When I test this query against the
Foxpro database, it works correctly.

'Good Query
sql2="SELECT DISTINCT
aplinks.partyno,attorney.*,aplinks.party_type,apli nks.partyname,aplinks.
withdrawn FROM attorney,aplinks WHERE attorney.dktno LIKE '%" & case_no
& "%' AND aplinks.dktno LIKE '%" & case_no & "%' AND
attorney.attyno=aplinks.attyno ORDER BY aplinks.partyname ASC,
aplinks.party_type ASC, attorney.principal DESC"

' NEW Query
sql2="SELECT DISTINCT
aplinks.partyno,attorney.*,aplinks.party_type,apli nks.partyname,aplinks.
pwithdrawn,aplinks.awithdrawn FROM attorney,aplinks WHERE attorney.dktno
LIKE '%" & case_no & "%' AND aplinks.dktno LIKE '%" & case_no & "%' AND
attorney.attyno=aplinks.attyno ORDER BY aplinks.partyname ASC,
aplinks.party_type ASC, attorney.principal DESC"





*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
SQL Server Scripts : List all tables name that contain particularcolumn name using SQL Query jayeshsorathia@gmail.com ASP .Net 0 08-31-2012 07:35 AM
SQL Reference, SQL Queries, SQL help ecoolone ASP .Net 0 01-03-2008 10:58 AM
What Happened to Sql Enterprise Manager and Sql Query Analyser in Visual Studio 2005 Edward ASP .Net 4 04-10-2006 04:15 PM
Build dynamic sql query for JSTL <sql:query> Anonymous Java 0 10-13-2005 10:01 PM
Hibernate query object SQL output bb Java 3 07-22-2005 05:06 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