hello sir,
goodevening....
iam working on vb6.0 and sql2005.
i have to convert the above code command in sql storeprocedure
where i have to generate centreid with branchprefix(ex :99 or 11) which is supplied by the application.i.e , intBranchPrefix. i have to take that branchprefix in storeprocedure and generate the centre id....that is
centerid=branch prefix & (id+!)
plz help me ......
prem........
goodevening....
iam working on vb6.0 and sql2005.
Code:
"select max(centreid) from regionmaster where centreid like '" & intBranchPrefix & "%'", DBConnection, adOpenKeyset, adLockOptimistic If rsMain.RecordCount > 0 Then intID = Mid(rsMain(0), 3, 13) End If intCentreID = intBranchPrefix & (intID + 1)
where i have to generate centreid with branchprefix(ex :99 or 11) which is supplied by the application.i.e , intBranchPrefix. i have to take that branchprefix in storeprocedure and generate the centre id....that is
centerid=branch prefix & (id+!)
plz help me ......
prem........
Comment