Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Queries work in Access but not via ASP/ADO

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Application Pool Recycles time to time (inconsist..  
Author Message
StevePBurgess

External


Since: May 08, 2006
Posts: 14



(Msg. 1) Posted: Tue Oct 03, 2006 12:53 pm
Post subject: Queries work in Access but not via ASP/ADO
Archived from groups: microsoft>public>inetserver>iis (more info?)

I am having problems with queries submitted to a Microsoft Access
database by ASP via a DSNless ADO connection.

An example of the query is:

SELECT DISTINCT Documents.Document, Documents.Title FROM (Keywords
INNER JOIN LinkTableKeywordLink ON Keywords.ID =
LinkTableKeywordLink.KeywordID) INNER JOIN (Attachments INNER JOIN
((LookUpSubject INNER JOIN Documents ON LookUpSubject.Id =
Documents.Subject) INNER JOIN LinkTableAttachments ON
Documents.Document = LinkTableAttachments.DocumentID) ON Attachments.Id
= LinkTableAttachments.AttachmentID) ON LinkTableKeywordLink.DocumentID
= Documents.Document WHERE (((Documents.Title) Like '*test*')) OR
(((Documents.Author) Like '*test*')) OR (((Documents.Summary) Like
'*test*')) OR (((Keywords.Keyword) Like '*test*')) OR
(((Attachments.AttachmentTitle) Like '*test*')) OR (((Attachments.Path)
Like '*test*')) order by Title;


This works perfectly within Access but not when submitted via ASP.
Simpler queries (with joins) work fine. It seems to be when I perform
"like" wildcard queries as above.

Any thoughts?

 >> Stay informed about: Queries work in Access but not via ASP/ADO 
Back to top
Login to vote
Gus

External


Since: Oct 03, 2006
Posts: 1



(Msg. 2) Posted: Tue Oct 03, 2006 1:35 pm
Post subject: Re: Queries work in Access but not via ASP/ADO [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You don't need to use the *s But if you want to use wildcards use an
sql standart: Try with % instead of *

Be lucky



StevePBurgess.TakeThisOut@gmail.com wrote:
> I am having problems with queries submitted to a Microsoft Access
> database by ASP via a DSNless ADO connection.
>
> An example of the query is:
>
> SELECT DISTINCT Documents.Document, Documents.Title FROM (Keywords
> INNER JOIN LinkTableKeywordLink ON Keywords.ID =
> LinkTableKeywordLink.KeywordID) INNER JOIN (Attachments INNER JOIN
> ((LookUpSubject INNER JOIN Documents ON LookUpSubject.Id =
> Documents.Subject) INNER JOIN LinkTableAttachments ON
> Documents.Document = LinkTableAttachments.DocumentID) ON Attachments.Id
> = LinkTableAttachments.AttachmentID) ON LinkTableKeywordLink.DocumentID
> = Documents.Document WHERE (((Documents.Title) Like '*test*')) OR
> (((Documents.Author) Like '*test*')) OR (((Documents.Summary) Like
> '*test*')) OR (((Keywords.Keyword) Like '*test*')) OR
> (((Attachments.AttachmentTitle) Like '*test*')) OR (((Attachments.Path)
> Like '*test*')) order by Title;
>
>
> This works perfectly within Access but not when submitted via ASP.
> Simpler queries (with joins) work fine. It seems to be when I perform
> "like" wildcard queries as above.
>
> Any thoughts?

 >> Stay informed about: Queries work in Access but not via ASP/ADO 
Back to top
Login to vote
StevePBurgess

External


Since: May 08, 2006
Posts: 14



(Msg. 3) Posted: Tue Oct 03, 2006 3:46 pm
Post subject: Re: Queries work in Access but not via ASP/ADO [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Gus wrote:
> You don't need to use the *s But if you want to use wildcards use an
> sql standart: Try with % instead of *
>

Thanks! That worked a treat.

Steve
 >> Stay informed about: Queries work in Access but not via ASP/ADO 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Inetinfo gets too much RAM because of SQL-queries? - I have to restart IIS5 6 times a day because Inetinfo gets too much memory (up to 1GB). Now I am asking myself about the reasons. Can my sql-queries in the asp- pages influence or cause this behaviour? regards Ragnar

setup ssl when (iis) apx queries sql over 1433 using xml ? - Hi, My network is setup like the diagram below. I have aspx pages querying sql over 1433 using to stored procedures and pulling back xml. IIS public IP | internet | |_____________________ | | | public ip ..

Web Site browse problem - anonimous access don't work - Hello, I have very interesting problem and i need to your help again. :) I have server with WIndows 2003 server Web Edition + several web site, that work correctly with anonimous access. Now i try to set up new site and i can't browse normally...

Where can I post queries related to IIS 7.0 on Vista - Hi, I have some issues with IIS 7.0 on Vista. Can someone tell where can I post my queries regarding same? Thanks, Pushkar

Win2003/IIS 6/ASP/SQL Thrash hard drive on queries - I upgraded my web sever that has been working fine for 2 yeares, now with upgrading to Win2003/IIS 6/ASP/SQL the same web pages and databse that do big queries seem to make the HD go wild and preformace is real real slow...sometimes it clears up for a..
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]