🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADOCommand and Blob

#534
From: Mark Guerrieri
Date: Thu, 03 Nov 2005 22:14
17 lines
1470 bytes
Try the following-

First, clear all the parameters from your design-time parameter list.
Then...

ADOCommand1->CommandText =
  AnsiString("INSERT INTO SPNs (SPN, Desc, Len, Res, Ofs, ") +
  AnsiString(         "Min, Max, Unit, Sus, PGN, start) ") +
  AnsiString("VALUES (:pSP, :pDe, :pLe, :pRs, :pOs, ") +
  AnsiString(         ":pMn, :pMx, :pUt, :pSp, :pPG, :pBt)");

ADOCommand->Parameters->ParseSQL(ADOCommand->CommandText, true);
ADOCommand1->Parameters->ParamByName("pSP")->Value = 94;

...

Mark
Technical Details
Message-ID: <436a8bb9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <430aed68@newsgroups.borland.com> <43692296@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,221d9548c2024384
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Guerrieri" <mguerrieri@nospam_cmsgrp.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <430aed68@newsgroups.borland.com> <43692296@newsgroups.borland.com>
Subject: Re: TADOCommand and Blob
Date: Thu, 3 Nov 2005 17:14:36 -0500
Lines: 19
Organization: Creative Marketing Strategies
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 209.50.174.82
Message-ID: <436a8bb9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131056057 209.50.174.82 (3 Nov 2005 14:14:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail