[AccessD] Executing Stored Procedures in a A2K ADP?

Mackin, Christopher CMackin at Quiznos.com
Fri May 7 08:46:49 CDT 2004


There are other ways, in my opinion this is the best though, except for the
breaking out of the creation of the paramter and asigning it in another
line, you can set the value of the paramter when you create it.

.Parameters.Append .CreateParameter("@RANum", adVarChar, adParamInput, 25,
RANum)

-Chris Mackin

-----Original Message-----
From: Joe Rojas [mailto:JRojas at tnco-inc.com]
Sent: Friday, May 07, 2004 7:11 AM
To: 'Access Developers discussion and problem solving'
Subject: [AccessD] Executing Stored Procedures in a A2K ADP?


Hi All,

I am working on an A2k ADP with a SS7 BE.

When executing stored procedures, both with and without parameters, I create
and ADO Command object to do this.
For example,

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

Does A2K, when working with ADPs, have a more direct/better way of executing
stored procedures from code or this the only/best way to do this?

Thanks,
JR





This electronic transmission is strictly confidential to TNCO, Inc. and
intended solely for the addressee. It may contain information which is
covered by legal, professional, or other privileges. If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy, or take any action in reliance on this
transmission. If you have received this transmission in error, please notify
the sender as soon as possible and destroy this message. While TNCO, Inc.
uses virus protection, the recipient should check this email and any
attachments for the presence of viruses. TNCO, Inc. accepts no liability for
any damage caused by any virus transmitted by this email.
-- 
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



More information about the AccessD mailing list