BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Writing null with Stored Procedure component

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Craig Stuntz [TeamB]
Guest





PostPosted: Wed Dec 10, 2003 7:50 pm    Post subject: Re: Writing null with Stored Procedure component Reply with quote



Kevin Frevert wrote:

Quote:
Try spInsert.Parameters['FirstName'].Clear;

...followed by .Bound := TRUE (see Help).

-Craig

--
Craig Stuntz [TeamB] . Vertex Systems Corp. . Columbus, OH
Delphi/InterBase Weblog : http://delphi.weblogs.com
How to ask questions the smart way:
http://www.catb.org/~esr/faqs/smart-questions.html

Back to top
Craig Andrews
Guest





PostPosted: Wed Dec 10, 2003 7:56 pm    Post subject: Writing null with Stored Procedure component Reply with quote



Hello,

How do I assign the value of Null to a stored procedure component
paramenter?

spInsert.Parameters['FirstName'].Value := Null; does not work

Thanks in advance,
Craig


Back to top
Bill Todd (TeamB)
Guest





PostPosted: Wed Dec 10, 2003 8:11 pm    Post subject: Re: Writing null with Stored Procedure component Reply with quote



MySP.ParamByName('AParam').Clear;

--
Bill (TeamB)
(TeamB cannot respond to questions received via email)
Back to top
Kevin Frevert
Guest





PostPosted: Wed Dec 10, 2003 8:11 pm    Post subject: Re: Writing null with Stored Procedure component Reply with quote

Craig,

Try spInsert.Parameters['FirstName'].Clear;

Good luck,
krf

"Craig Andrews" <craig (AT) radicalage (DOT) com> wrote

Quote:
Hello,

How do I assign the value of Null to a stored procedure component
paramenter?

spInsert.Parameters['FirstName'].Value := Null; does not work

Thanks in advance,
Craig





Back to top
craig
Guest





PostPosted: Thu Dec 11, 2003 6:13 am    Post subject: Re: Writing null with Stored Procedure component Reply with quote

Thank you all!


"Craig Andrews" <craig (AT) radicalage (DOT) com> wrote

Quote:
Hello,

How do I assign the value of Null to a stored procedure component
paramenter?

spInsert.Parameters['FirstName'].Value := Null; does not work

Thanks in advance,
Craig





Back to top
Craig Andrews
Guest





PostPosted: Mon Dec 15, 2003 11:44 pm    Post subject: Re: Writing null with Stored Procedure component Reply with quote

Thanks for the help.

I've tried spInsert.Parameters.ParamByName('FirstName').Clear; and
spInsert.Parameters[1].clear; but both result in a Undeclared identifer:
'Clear' error. I seem to be missing something obvious, sorry.

Is there an "include" file other than ADODB and DB ?

Thanks again,
Craig


"Craig Andrews" <craig (AT) radicalage (DOT) com> wrote

Quote:
Hello,

How do I assign the value of Null to a stored procedure component
paramenter?

spInsert.Parameters['FirstName'].Value := Null; does not work

Thanks in advance,
Craig





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.