Stored Procedures [dbo].[GetProviderTransactionInformation]
Properties
PropertyValue
ANSI Nulls OnYes
Quoted Identifier OnYes
Parameters
NameData TypeMax Length (Bytes)
@inStorageIdint4
@inInstrumentIdint4
Permissions
TypeActionOwning Principal
GrantExecuteMssExec
SQL Script
/**
*
* Maintains the provider's payment info needed for subsequent recurring billings for a given
* storage and plastic instrument record that may be needed for each subsequent billing that
* is charging the same plastic instrument (credit card).
*
*/

create procedure [dbo].[GetProviderTransactionInformation]
    @inStorageId int,
    @inInstrumentId int
as
set nocount on;

select
    StorageId = StoragePaymentTransactionTracking.StorageFID,
    InstrumentId = StoragePaymentTransactionTracking.InstrumentFID,
    FirstTransactionId = StoragePaymentTransactionTracking.FirstTransactionID,
    LastTransactionId = StoragePaymentTransactionTracking.LastTransactionID
from StoragePaymentTransactionTracking
where StoragePaymentTransactionTracking.StorageFID = @inStorageId and
    StoragePaymentTransactionTracking.InstrumentFID = @inInstrumentId
GO
GRANT EXECUTE ON  [dbo].[GetProviderTransactionInformation] TO [MssExec]
GO
Uses