Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Pkey back from sql server
Message
 
 
À
06/12/2004 14:43:20
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP1
Database:
MS SQL Server
Divers
Thread ID:
00966751
Message ID:
00967411
Vues:
5
Hi Bonnie, thanks for the reply, one small detail I'm not quite clear on.

How do you deal with passing in differing parameters into the stored procedures within SQL server? specifically the update stored procedures.

for example, if we have a table with 5 fields, named field1 to field5, and imagine we need to update field1 & field2 in one situation and field3 & field5 in another.

Do you create and call a seperate stored procedure for each update, eg have a stored procedure that expects to receive parameters for field1 and field2 and only updates those fields and have another to update fields3 & field5.

Or do you have one 'smart' stored procedure that recieves varying parameters and determines what is has been passed and works out what fields to update?

The last option would seem to be the way to go, but I don't have a clue about how to structure the SP to cope with this,....

Any pointers you could give me would be gratefully accepted...

Thanks, Bernard....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform