[AccessD] Executing Stored Procedures in a A2K ADP?

Brett Barabash BBarabash at TappeConstruction.com
Fri May 7 13:20:53 CDT 2004


> That's because you can't count while drinking beer at this Happy Hour
> of Friday; it's 9 towards 8 - or at least 7 towards 6.

Huh?!  Not counting the With blocks,

He said :

1  Set com = New ADODB.Command
   With com
2      .ActiveConnection = CurrentProject.Connection
3      .CommandText = "dbo.sp_DeleteRAs"
4      .CommandType = adCmdStoredProc
5      .Parameters.Append .CreateParameter("@RANum", adVarChar,adParamInput,
25)
6      .Parameters("@RANum") = RANum
7     .Execute
    End With

I said:

    With CurrentProject.Connection
1       .sp_DeleteRAs RANum
    End With

Thus, 7 vs. 1 (or 9 vs. 3 with the blocks), and that doesn't count the code
you need to dim the command object and destroy it afterwards.

I'm sorry, who's been been drinking here? <vbg>


-----Original Message-----
From: Gustav Brock [mailto:gustav at cactus.dk]
Sent: Friday, May 07, 2004 1:12 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Executing Stored Procedures in a A2K ADP?


Hi Brett

> Hmm...  This really is the first time I've heard multiple people saying
that
> 7 lines of code were easier to read than 1.

That's because you can't count while drinking beer at this Happy Hour
of Friday; it's 9 towards 8 - or at least 7 towards 6.

/gustav


--------------------------------------------------------------------------------------------------------------------
The information in this email may contain confidential information that 
is legally privileged. The information is only for the use of the intended 
recipient(s) named above. If you are not the intended recipient(s), you 
are hereby notified that any disclosure, copying, distribution, or the taking 
of any action in regard to the content of this email is strictly prohibited.  If 
transmission is incorrect, unclear, or incomplete, please notify the sender 
immediately. The authorized recipient(s) of this information is/are prohibited 
from disclosing this information to any other party and is/are required to 
destroy the information after its stated need has been fulfilled.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.

This footer also confirms that this email message has been scanned
for the presence of computer viruses.Scanning of this message and
addition of this footer is performed by SurfControl E-mail Filter software
in conjunction with virus detection software.




More information about the AccessD mailing list