<query name="OrderInfo" rowElementName="Order">
<sql>
<![CDATA[
select OrderNumber, OrderGUID, ParentOrderNumber, StoreVersion, QuoteCheckout, IsNew, ShippedOn, CustomerID, CustomerGUID, Referrer, SkinID, LastName, FirstName, Email, Notes, BillingEqualsShipping, BillingLastName, BillingFirstName, BillingCompany, BillingAddress1, BillingAddress2, BillingSuite, BillingCity, BillingState, BillingZip, BillingCountry, BillingPhone, ShippingLastName, ShippingFirstName, ShippingCompany, ShippingResidenceType, ShippingAddress1, ShippingAddress2, ShippingSuite, ShippingCity, ShippingState, ShippingZip, ShippingCountry, ShippingMethodID, ShippingMethod, ShippingPhone, ShippingCalculationID, Phone, RegisterDate, AffiliateID, CouponCode, CouponType, CouponDescription, CouponDiscountAmount, CouponDiscountPercent, CouponIncludesFreeShipping, OkToEmail, Deleted, CardType, CardName, CardNumber, Last4, CardExpirationMonth, CardExpirationYear, OrderSubtotal, OrderTax, OrderShippingCosts, OrderTotal, PaymentGateway, AuthorizationCode, AuthorizationPNREF, OrderDate, LevelID, LevelName, LevelDiscountPercent, LevelDiscountAmount, LevelHasFreeShipping, LevelAllowsQuantityDiscounts, LevelHasNoTax, LevelAllowsCoupons, LevelDiscountsApplyToExtendedPrices, LastIPAddress, PaymentMethod, OrderNotes, RecurringSubscriptionID, PONumber, DownloadEmailSentOn, ReceiptEmailSentOn, DistributorEmailSentOn, ShippingTrackingNumber, ShippedVIA, CustomerServiceNotes, RTShipRequest, RTShipResponse, TransactionState, AVSResult, CardinalLookupResult, CardinalAuthenticateResult, CardinalGatewayParms, AffiliateCommissionRecorded, OrderOptions, OrderWeight, eCheckBankABACode, eCheckBankAccountNumber, eCheckBankAccountType, eCheckBankName, eCheckBankAccountName, CarrierReportedRate, CarrierReportedWeight, LocaleSetting, FinalizationData, ExtensionData, AlreadyConfirmed, CartType, THUB_POSTED_TO_ACCOUNTING, THUB_POSTED_DATE, THUB_ACCOUNTING_REF, ReadyToShip, IsPrinted, AuthorizedOn, CapturedOn, RefundedOn, VoidedOn, InventoryWasReduced, MaxMindFraudScore, MaxMindDetails, CardStartDate, CardIssueNumber, TransactionType, Crypt, VATRegistrationID, FraudedOn, RelatedOrderNumber from Orders with (NOLOCK) where OrderNumber=@OrderNumber
]]>
</sql>
<queryparam paramname="@OrderNumber" paramtype="runtime" requestparamname="OrderNumber" sqlDataType="int" defvalue="0" validationpattern=" " />
</query>