🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.databases.ms-access
Article #177

Re: passing sql from asp

#177
From: Peter van Kampen
Date: Fri, 17 Dec 1999 00:00
41 lines
2370 bytes
Eyal,

* = % in SQL-92

Hth,

PeterK
--

Access FAQ : www.mvps.org/access
To Search the archives of this NG : http://people.a2000.nl/kampen/access/

Eyal Maaravi <netc1@netvision.net.il> wrote in message
news:83bleq$2gh$1@news.netvision.net.il...
> hi
>
> i want to create a recordset from an ASP page using an SQL string;
>
> the SQL is:
>
> SELECT * FROM Business_qry WHERE name Like '*rest*'
>
> i opened the recordset in the following way:
>
> set rsCoupons = CreateObject("ADODB.Recordset")
> rsCoupons.Open "SELECT * FROM Business_qry WHERE name Like '*rest*'", _
>  "DATABASE=myDB;UID=;PWD=;DSN=myDB"
>
>
> that doesn't work, and the problem is with the operator like and with the
> asterisk.
>
> i succeeded executing the exact same SQL in Access, in it worked fine.
>
> please help if you know the answer.
>
> thanks in advance
>
> eyal maaravi
>
>
Technical Details
Message-ID: <83d91o$51e$1@weber.a2000.nl>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <83bleq$2gh$1@news.netvision.net.il>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 115df1,f76d89cd0bf069f
X-Google-Attributes: gid115df1,public
X-Google-Thread: ff435,f76d89cd0bf069f
X-Google-Attributes: gidff435,public
X-Google-Thread: 114664,f76d89cd0bf069f
X-Google-Attributes: gid114664,public
X-Google-Thread: 11633f,f76d89cd0bf069f
X-Google-Attributes: gid11633f,public
X-Google-Thread: fdea5,f76d89cd0bf069f
X-Google-Attributes: gidfdea5,public
X-Google-Thread: ff0ac,f76d89cd0bf069f
X-Google-Attributes: gidff0ac,public
X-Google-Thread: 10f6af,f76d89cd0bf069f
X-Google-Attributes: gid10f6af,public
X-Google-Thread: 162feb,f76d89cd0bf069f
X-Google-Attributes: gid162feb,public
From: "Peter van Kampen" <retepnavmak@hotmail.com>
Subject: Re: passing sql from asp
Date: 1999/12/17
Message-ID: <83d91o$51e$1@weber.a2000.nl>
X-Deja-AN: 561916134
References: <83bleq$2gh$1@news.netvision.net.il>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@a2000.nl
X-Trace: weber.a2000.nl 945432440 5166 24.132.27.232 (17 Dec 1999 12:07:20 GMT)
Organization: A2000 Kabeltelevisie en Telecommunicatie
X-MSMail-Priority: Normal
NNTP-Posting-Date: 17 Dec 1999 12:07:20 GMT
Newsgroups: comp.databases.ms-access,cz.comp.microsoft.asp,dk.edb.internet.webdesign.asp,microsoft.public.de.inetserver.iis.asp,microsoft.public.iis4.beta.database,microsoft.public.sqlserver.odbc,microsoft.public.vb.database.odbc,microsoft.public.win98.pws_4