🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ADO Command Component/SQL Syntax Question

#4651
From: jqpdev
Date: Wed, 24 Oct 2001 18:49
30 lines
2514 bytes
Thanks again Lee for your time.
I think the problem is not with the INSERT statement, and the dilema is
circular.
I can't use null to skip a field in this scenario because the field I would
skip doesn't allow nulls... its an auto-increment field.
If I omit the field list i must use NULL to skip fields where nulls are
accepted and the data must be in the order in which the fields are
specified... data val#1 goes with field#1 etc... so, to use or not use a
field list and nulls leaves me in a no win situation.

I finally got very tired of struggling with Builder v5/Access2000 and
decided to take another route... MS SQL Server v7.0.
I was able to migrate the data and structures rather easily and was able to
learn the stored procedure language rather quickly.

A big boost for me was the ability to have INSERT, UPDATE, and DELETE stored
procedures created for me by using a wizard. *grin*

So I basically migrated the insert statement to a stored procedure and I got
no errors/no hiccups.
However, I now have to figure a way to demo my app with SQL Server.


"Lee Gan" <leegan@hotmail.com> wrote in message news:3bd44422$1_2@dnews...
> I guess I now have a better understanding of your problem. In the INSERT
> INTO statement, you have to make sure the number of fields is the the same
> as that of the database. Use NULL to skip a field if it is NULLable. If
you
> do not want to specify all the fields, use UPDATE statement instead. Lee
Gan
Technical Details
Message-ID: <3bd70c8d_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3bc85e2c$1_2@dnews> <3bcb51f8$1_2@dnews> <3bd08b78$1_1@dnews> <3bd44422$1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,a71d499ca9f0e9ae
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-10-24 11:53:44 PST
From: "jqpdev" <jqpdev@whowhatwhere.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3bc85e2c$1_2@dnews> <3bcb51f8$1_2@dnews> <3bd08b78$1_1@dnews> <3bd44422$1_2@dnews>
Subject: Re: ADO Command Component/SQL Syntax Question
Date: Wed, 24 Oct 2001 14:49:59 -0400
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
NNTP-Posting-Host: 24.185.61.176
Message-ID: <3bd70c8d_1@dnews>
X-Trace: dnews 1003949197 24.185.61.176 (24 Oct 2001 11:46:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews