Solved

(Delphi5 + MySQL) with MyOLEDB

Posted on 2001-07-26
8
228 Views
Last Modified: 2010-04-06
When i use MyOLEDB connect to MySQL via ADOConnect,
Some problem i found:

   ADOQuery.SQL.Clear;
   ADOQuery.SQL.Add('INSERT INTO .. VALUE(.., :NAME, ..)');
   ADOQuery.Parameters.ParamValues['NAME']:=''''+s+'''';
   ADOQuery.ExecSQL;
 
'NAME' is a String Field, Param must fix "'" when it's
Type is NOT integer. But how can i operate with BLOB Field


Has any better and easy way to access MySQL via ADO
(but ODBC, BDE)?

   
0
Comment
Question by:OopsWare
  • 3
  • 3
8 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6321047
>'NAME' is a String Field, Param must fix "'" when it's
>Type is NOT integer

you can use
quotedstr(s)
instead

blobs should go similar,
but as i don't use ado, i cannot show how

meikl ;-)
0
 
LVL 22

Accepted Solution

by:
Mohammed Nasman earned 50 total points
ID: 6321118
Hello

  for insert blow field into the database i use this code

Query1.Params[0].LoadFromFile('c:\pic.jpg',ftBlob);

this is to insert image into oracle database

Mohammed
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 6321151
:-))
whats a blow field, mohammed ?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 27

Expert Comment

by:kretzschmar
ID: 6321164
just kidding, mohammed :-))
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6321189
lol, i mean blob field meikl ;O)
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6321207
I know meikl :o)
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8733805
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept mnasman's comment as answer

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now