🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #772

Re: ADOCommand

#772
From: Viatcheslav V. Vassiliev
Date: Sat, 09 Apr 2005 07:00
33 lines
2124 bytes
Use parameters.

insert into (blobfield) values (:blob)

Then set parameter to anything you need, including stream or string that 
contains quotes or line breaks.

//------------------------------------------
Regards,
Vassiliev V. V.
http://www.managed-vcl.com - using .Net objects in Delphi for Win32 + 
ADO.Net
http://www.oledbdirect.com - The fastest way to access MS SQL Server,
MS Jet (Access) and Interbase (through OLEDB)

"James Peterson" <jpeterson@romanmealmilling.com> �������/�������� � 
�������� ���������: news:42568316$1@newsgroups.borland.com...
> is there a way to insert a Stream into an ADOCommand ?
>
> Forexample
> you have a RichText1 and you wanted to save it with formating into the
> following ADOCommond.
>
>  comdtext = "insert into data (ItemNumber, UserLog, Date, Time,
> SerializedDate, SerializedTime, "+fields;
>  comdtext += ")values('"+ItemNo+"','"+userID+"','"+dated+"','"+timed+"',
> "+SerialDate+", "+SerialTime+", ";
>  comdtext += values+")";
>  ADOCommand2->CommandType = cmdText;
>  ADOCommand2->CommandText = comdtext;
>  ADOCommand2->Execute();
>
> 
Technical Details
Message-ID: <42577d85@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42568316$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,1dcb39184a9818bb
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <42568316$1@newsgroups.borland.com>
Subject: Re: ADOCommand
Date: Sat, 9 Apr 2005 11:00:20 +0400
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 85.93.137.101
Message-ID: <42577d85@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113030021 85.93.137.101 (9 Apr 2005 00:00:21 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail