ColdFusion Code:
<cfstoredproc procedure="pr_get_LoggedUser_Info" datasource="#Application.CDP_DSN#">
<cfprocparam type="In" cfsqltype="CF_SQL_INTEGER" value="#rsCF_Client_ID.CID#" null="No">
<cfprocresult name="rsCF_Client">
</cfstoredproc>
<cfoutput>#rsCF_Client.DistrictA#</cfoutput>
SQL Procedure Code:
SELECT ct.ConType_Abbr,
Ltrim(Rtrim(c.FirstName)) AS FirstName,
Ltrim(Rtrim(c.LastName)) AS LastName,
c.CompanyName,
c.Address,
c.Address2,
c.City,
c.State,
c.Zip,
c.EmailAddress,
ct.ContactType
FROM cdp_Contacts c, cdp_ContactTypes ct
WHERE c.ContactType_ID = ct.ContactType_ID
AND c.Contact_ID = @Logged_CID
SELECT Contact_ID,
CompanyName AS DistrictA
FROM cdp_Contacts
WHERE Contact_ID = 23318
|