|
-
Sending a query to ADO with then character 39 :'
I can't send a query to an ADO object if the query text contain the character
ascii 39. I'had try to double it (it works well when i work with the net
library accessing SQL Server Databases) but it occurs an error in this case
also.
The only solution i find is to send a query with db library, on doubling
the caracter to obtain the ID (field as int primary key), then i make a new
query to find this ID in the ADO object... I works but it is'nt very nice,
no ?
Thank's if you have a solution.
-
Re: Sending a query to ADO with then character 39 :'
I call this the "O'Malley" problem. It can be solved by letting ADO handle
the parameters for you (via a Command object and a Parameters collection)
or by doubling the single quote. If done right, either technique works.
bv
"Jean-Claude LEPOT" <jclepot@wineandco.com> wrote:
>
>I can't send a query to an ADO object if the query text contain the character
>ascii 39. I'had try to double it (it works well when i work with the net
>library accessing SQL Server Databases) but it occurs an error in this case
>also.
>
>The only solution i find is to send a query with db library, on doubling
>the caracter to obtain the ID (field as int primary key), then i make a
new
>query to find this ID in the ADO object... I works but it is'nt very nice,
>no ?
>
>Thank's if you have a solution.
Similar Threads
-
By Tom Wilson in forum VB Classic
Replies: 0
Last Post: 10-06-2000, 03:06 PM
-
By Mike in forum VB Classic
Replies: 0
Last Post: 10-06-2000, 01:48 PM
-
By Neil Whitlow in forum VB Classic
Replies: 2
Last Post: 08-23-2000, 01:24 AM
-
By Neil Whitlow in forum Database
Replies: 3
Last Post: 08-20-2000, 11:38 AM
-
By chaumette in forum VB Classic
Replies: 2
Last Post: 03-31-2000, 11:09 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks