Article View: borland.public.cppbuilder.database.ado
Article #1629SQL Functions through ADO
From: Heinz Ketchup
Date: Fri, 11 Jun 2004 01:40
Date: Fri, 11 Jun 2004 01:40
39 lines
1981 bytes
1981 bytes
Thanks everyone for your help!
I have definitely learned quite a bit.
Is it possible to make use of SQL Functions?
Min / Max / Sum / Count / Average?
Whenever you make a call (ExecSQL / Open)
It returns Data usually to a DBGrid / Table
What if we just want to message box the results?
or
Store it in a variable for something else?
Should I even consider trying to use a TDecisionCube?
It appears to make use of some of the SQL Functions
I need.
Min / Max / Sum / Count / Average.
<example of some of the things I've tried / didn't work>
SELECT COUNT(*)
FROM TableName
INTO :COUNTERVARIABLE
SomeVariant = ....->ParamByName("COUNTERVARIABLE")->Value;
Anything to assign a value to a variable would be really nice.
I can always do it the hardway, which is to code in functions, but that
defeats the purpose of SQL Functions.
PS: The only one that currently works in respect to COUNT is ->RecordCount
(But that is only after a Dataset has been opened on a query)
Hopefully, these are all the questions I'll need to ask.
***Hopefully***
Thanks for the help everyone.
It really has been great.
Heinz
Technical Details
Message-ID:
<40c90d84$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,169627c1f4340994,start X-Google-Attributes: gid10698b,public From: "Heinz Ketchup" <heinz_like_the_ketchup@n0spam.h0tmail.c0m> Newsgroups: borland.public.cppbuilder.database.ado Subject: SQL Functions through ADO Date: Thu, 10 Jun 2004 19:40:26 -0600 Lines: 41 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 209.89.65.182 Message-ID: <40c90d84$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086918020 209.89.65.182 (10 Jun 2004 18:40:20 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail