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 

Stored procs parameters

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





PostPosted: Wed May 05, 2004 9:15 am    Post subject: Stored procs parameters Reply with quote



Hi All,

The following problem occured:

When a parameterized stored procedure (MSSQL Server 2000) is called via
ADOStoredProc (D5) for inserting records, a field contains the value of the
previous inserted record, when the field of the current record is blank
(NULL).

Assigning NULL values seems to be a problem.

Does anybody know a solution / workaround for this?


Thanks

Gijsbert


Back to top
Bruce Michener
Guest





PostPosted: Wed May 05, 2004 2:04 pm    Post subject: Re: Stored procs parameters Reply with quote



Refresh the parameters before setting the values (i.e.
mystoredproc.parameters.refresh;).

On Wed, 5 May 2004 11:15:16 +0200, Gijsbert <g.boekschoten (AT) petonline (DOT) nl>
wrote:

Quote:
Hi All,

The following problem occured:

When a parameterized stored procedure (MSSQL Server 2000) is called via
ADOStoredProc (D5) for inserting records, a field contains the value of
the
previous inserted record, when the field of the current record is blank
(NULL).

Assigning NULL values seems to be a problem.

Does anybody know a solution / workaround for this?


Thanks

Gijsbert




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.