🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #685

Re: ado for odbc

#685
From: jane
Date: Tue, 24 Apr 2001 08:44
30 lines
1814 bytes
it is about precision.
in sqlserver,getdate() has time  00:00.00000
but general,time likes 00:00

jane <janez@pbtco.com> wrote in message news:3ad29b55_2@dnews...
> For three_tier application,on the appliction server, I put
> a TADOConnection,a TADODataSet,a TDataSetProvider In the
> Transaction Data Module. The TADOConnect connect a
> SQLSERVER database by ado for odbc.
>
> in sqlserver database table,i have a datatime field,
> it's default value is (getdate()).
>
> in client app,i insert a new record ,i don't set the
> datatime field's value,i want the default value.The
> ClientDataSet execute ApplyUpdates(0) successfully.
> then i modify one of the records ,error "user by another
> user" display.
> that is, inserting a new record is right,modifiing a
> record is error,why???
>
> thanks
>
> (i am sorry that my english is poor)
>
>
>
>
>
>
Technical Details
Message-ID: <3ae53b17$1_2@dnews>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!EU.net!blackbush.xlink.net!news-in.ivm.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3ad29b55_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,d79d829f96726a08
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2001-04-24 01:52:04 PST
Reply-To: "jane" <janez@pbtco.com>
From: "jane" <janez@pbtco.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
References: <3ad29b55_2@dnews>
Subject: Re: ado for odbc 
Date: Tue, 24 Apr 2001 16:44:53 +0800
Lines: 32
Organization: powerbridge
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 61.143.60.103
Message-ID: <3ae53b17$1_2@dnews>
X-Trace: dnews 988101399 61.143.60.103 (24 Apr 2001 01:36:39 -0700)
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!newsfeed.cwix.com!EU.net!blackbush.xlink.net!news-in.ivm.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews