Article View: pl.comp.lang.delphi.bazy-danych
Article #82386Delphi XE, MS SQL Server 2008 R2, TADOQuery. Jak przekazać NULL jako parametr?
From: Marcin G.
Date: Fri, 12 Sep 2014 11:53
Date: Fri, 12 Sep 2014 11:53
19 lines
1473 bytes
1473 bytes
Robię tak:
...
uses
Variants;
...
adoQuery.Parameters[1].Value := Null;
...
adoQuery.Open;
...
Dostaję komunikat:
"Niepoprawnie zdefiniowany obiekt Parameter. Podano niespójne lub niepełne
informacje.".
Pod MS SQL Server Management Studio funkcja, którą wywołuję działa
prawidłowo gdy podstawię NULL jako parametr.
Pozdrawiam,
Marcin G.
Technical Details
Message-ID:
<5412deca$0$2223$65785112@news.neostrada.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!eu.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!eu.feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-01.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail From: "Marcin G." <sq9etc_usun_to_@poczta.onet.pl> Newsgroups: pl.comp.lang.delphi.bazy-danych Subject: Delphi XE, MS SQL Server 2008 R2, TADOQuery. Jak przekazać NULL jako parametr? Date: Fri, 12 Sep 2014 13:53:42 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3508.1109 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3508.1109 Lines: 20 Message-ID: <5412deca$0$2223$65785112@news.neostrada.pl> Organization: Telekomunikacja Polska NNTP-Posting-Host: 80.48.250.66 X-Trace: 1410522826 unt-rea-b-01.news.neostrada.pl 2223 80.48.250.66:14196 X-Complaints-To: abuse@news.neostrada.pl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit