Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New SQL Server Blog Post Tip...Passing tables as parameters
Message
De
26/10/2013 15:34:20
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
New SQL Server Blog Post Tip...Passing tables as parameters
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01586466
Message ID:
01586466
Vues:
79
http://kevin_s_goff.typepad.com/kevin_s_goff_weblog/2013/10/10262013-transact-sql-tip-of-the-week.html

Going to start doing this on my blog - going to try to do one a week.

The topic this week: passing tables as parameters to stored procedures

Over the years, SQL database developers have used many different techniques for trying to pass a variable number of key values to a procedure.

Options have included CSV strings, XML strings, temporary tables, and (yuck) cursors.

All of them work (though cursors are the worst) - however, in SQL 2008, Microsoft added a new table type, so that developers could pass table variables (declared as table type templates) to stored procs.

Hope people find it helpful.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform