Avatar of kowsika devi
kowsika devi
 asked on

stored procedure how to pass parameter value in sql server 2012

Exec Igen_SP_DedupeSearch '<ROOT><Dedupe PerMobile  = '+ @m_PerMobile +' /><Dedupe PerAMobile  = '+ @m_PerAMobile +' /><Dedupe CorrMobile  = '+ @m_CorrMobile +' />
                    <Dedupe CorrAMobile  = '+ @m_CorrAMobile +' /></ROOT>','Custinfo'


how can i pass value @m_permobile values in xml.
Microsoft SQL ServerXMLSQL

Avatar of undefined
Last Comment
Nitin Sontakke

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Pawan Kumar

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
kowsika devi

ASKER
thanks jj :-)
kowsika devi

ASKER
thanks jj
Nitin Sontakke

To put it other way, you cannot pass an expression "a + b" as a parameter.

In this case, assign a + b to c and then pass c as a parameter. Hope it helps!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23