A create procedure statment with the following sintax would do request the parameter @Parameter1
CREATE PROCEDURE usp_AnySprocName @Parameter1 varchar(10)
AS
<Your Code Here>
GO AL Almeida
NT/DB Admin
"May all those that come behind us, find us faithfull"
CREATE procedure AAspEAI @xmlparam
as
declare @qry varchar(1000)
set @qry = 'select distinct a.providerkey,lastname,firstname,middlename,descr as AddressType,address1,address2,city,state,zipcode
from provider a
inner join productprovider b on a.providerkey = b.providerkey
inner join clinicproduct c on b.clinickey = c.clinickey and b.contractkey = c.contractkey and b.productcodeid = c.productcodeid
inner join clinicaddress d on c.clinicproductkey = d.clinicproductkey
inner join lookup e on locationtypeid = lookupid
where where a.providerkey = ' + @xmlparam
print @qry
exec (@qry)
It seems correct as far as sintax goes.
What exactly is your question? AL Almeida
NT/DB Admin
"May all those that come behind us, find us faithfull"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.