A
Aussie Rules
Hi,
I have about 30 sql SP with around 50 paramaters each.
Currently in each SP, each param has its own name (prmC, prmD etc). Just
out of being a bit lazy, is there away that each param can have the same
name.. just savings me from having to rename each param as I go (i am cut
and past a single block over and over as many times as needed for each SP)
Thanks
Dim prmC = New SqlParameter("@City ", Data.SqlDbType.NVarChar,
50)
prmC.Value = strRole
SqlCommand.Parameters.Add(prmC)
Dim prmD = New SqlParameter("@State ", Data.SqlDbType.NVarChar,
50)
prmD.Value = strCountry
SqlCommand.Parameters.Add(prmD)
Dim prmE = New SqlParameter("@country", Data.SqlDbType.NVarChar,
50)
prmE.Value = strCountry
SqlCommand.Parameters.Add(prmE)
I have about 30 sql SP with around 50 paramaters each.
Currently in each SP, each param has its own name (prmC, prmD etc). Just
out of being a bit lazy, is there away that each param can have the same
name.. just savings me from having to rename each param as I go (i am cut
and past a single block over and over as many times as needed for each SP)
Thanks
Dim prmC = New SqlParameter("@City ", Data.SqlDbType.NVarChar,
50)
prmC.Value = strRole
SqlCommand.Parameters.Add(prmC)
Dim prmD = New SqlParameter("@State ", Data.SqlDbType.NVarChar,
50)
prmD.Value = strCountry
SqlCommand.Parameters.Add(prmD)
Dim prmE = New SqlParameter("@country", Data.SqlDbType.NVarChar,
50)
prmE.Value = strCountry
SqlCommand.Parameters.Add(prmE)