The Active Network
ActiveMac Anonymous | Create a User | Reviews | News | Forums | Advertise  
 

  *  

  Introducing Table-Valued Parameters - Part 1
Time: 22:06 EST/03:06 GMT | News Source: Microsoft | Posted By: Jonathan Tigner

I am Himanshu. I am a program manager in the ADO.Net team. Today I am going to talk about Table-Valued parameters that are new in SQL Server 2008. About 4 years back I was writing an application which involved adding metadata about my music library into a database. The database had a table each for storing Artists, Albums, and Songs. While adding an Album of songs into the database I had to insert data into each of these tables. I had defined stored procedure for inserting data into each of the tables. In the first iteration there was a bug in the code due to which these operations were not being done in a single transaction. Needless to say this bug surfaced as a data-corruption issue later on. Once identified the fix was trivial, ensure that all commands are executed in a single transaction. However, what I would have really liked to do was to be able to call a single stored procedure to which I could pass the metadata about the Album and the list of songs at the same time. But there was no good way of accomplishing this back then. I was programming against SQL Server 2000 back then. I am excited to say that now with the new table-valued parameters in SQL Server 2008 I can finally write a single stored procedure that will let me accomplish this without any kind of hacks!

Table-Valued parameters, as the name suggests lets you pass a table as parameter to a stored procedure. In order to use table-valued parameters you need to define a table type and then use the table type in the definition of the stored procedure. Let me illustrate this with the help of an example. I am going to first create a table type named Songs_TableType with two columns, Title and TrackNumber. Then I will use it in a stored procedure to pass a table as parameter.

Write Comment
Return to News

  Displaying 801 through 804 of 804
Prev | First
  The time now is 12:54:36 PM ET.
Any comment problems? E-mail us
#801 By 4240821 (82.115.4.230) at 2/9/2026 2:16:22 PM
https://telegra.ph/Scientists-Uncover-Mysterious-Chl-PhenomenonCould-It-Be-the-Next-Big-Breakthrough-in-Energy-12-16
https://telegra.ph/M50-Traffic-Jam-Turns-Into-Chaos-as-10000-Vehicles-Stuck-in-GridlockPolice-Warn-of-Explosive-Situation-as-Protesters-Storm-the-R-12-16
https://telegra.ph/Coreweave-Stock-Surges-30-After-AI-Driven-Breakthrough-Can-This-Tech-Titan-Turn-the-Tide-in-the-AI-Arms-Race-12-16
https://telegra.ph/Jane-Austens-Lost-Letter-Reveals-the-Shocking-Truth-Behind-Emmas-SecretExposed-in-a-19th-Century-Manuscript-12-16
https://telegra.ph/Knvb-Beker-Drama-Unfolds-Messis-Last-Gasp-Strike-vs-Bayerns-Last-StandWho-Will-Claim-the-Title-12-16
https://telegra.ph/Indian-Currency-Surges-to-Record-High-as-Rupee-Breaks-84-Against-Dollar-Amid-Global-Market-Volatility-12-16
https://telegra.ph/Legendary-Comic-Book-Artist-Paul-Doyles-Groundbreaking-New-Work-Sparks-Debate-Is-His-Bold-Artistic-Evolution-a-Masterstroke-or-a-12-16
https://telegra.ph/Ralf-Rangnicks-Shocking-Betrayal-Bayern-Munichs-Coach-Reveals-Secret-Plan-to-Ditch-MessiAnd-Its-Already-Backfiring-12-16
https://telegra.ph/Gold-Rush-20-Space-Nuggets-Power-New-Rocket-BoomElons-Next-Billion-Dollar-Play-12-16
https://telegra.ph/EFL-Cup-Drama-Englands-Last-Gasp-Victory-Over-Wales-Leaves-Fans-in-ShockBut-Whos-Next-to-Crash-12-16

#802 By 4240821 (82.115.4.230) at 2/9/2026 2:35:02 PM
https://telegra.ph/Monschaus-Majestic-Mansions-A-Medieval-Mystery-Unveiled-01-25
https://telegra.ph/Sem-van-Duijns-Shocking-Revelation-The-Secret-That-Will-Change-Everything-01-25
https://telegra.ph/Simona-Izzo-Stuns-in-Latest-Red-Carpet-Appearance-01-25
https://telegra.ph/RTE-Sport-Uncovers-Shocking-Truth-Behind-Athletes-Comeback-01-25
https://telegra.ph/Newcastle-vs-Aston-Villa-Magpies-Soar-Villans-Vanish-01-25
https://telegra.ph/Brentford-vs-Nottingham-Forest-A-Battle-for-Supremacy-on-the-Pitch-01-25-3
https://telegra.ph/Crystal-Palace-vs-Chelsea-Eagles-Soar-Blues-Grounded-in-Fiery-London-Derby-Thriller-01-25
https://telegra.ph/Celtic-Hearts-Ache-Whispers-of-Unrequited-Love-Echo-Through-the-Highlands-01-25
https://telegra.ph/Chelseas-Transfer-Gambit-More-Risky-Than-Rewarding-01-25
https://telegra.ph/Mönchengladbach-vs-Stuttgart-Borussen-Battle-for-European-Dream-01-25

#803 By 4240821 (82.115.4.230) at 2/10/2026 5:46:31 PM
https://telegra.ph/Disney-Plus-Streaming-Wars-Heats-Up-as-New-Competitors-Enter-the-Fray-01-30
https://telegra.ph/Year-20-The-Decade-That-Changed-Everything-01-30
https://telegra.ph/Europa-League-Shocker-Underdogs-Clinch-Historic-Upset-01-30
https://telegra.ph/Mavericks-vs-Hornets-NBA-Showdown-Heats-Up-01-30
https://telegra.ph/Josh-Gad-Shocks-Fans-with-Unexpected-Career-Pivot-into-Space-Exploration-Innovation-01-30
https://telegra.ph/Pontus-Rasmussons-Trial-Shocking-Revelations-Unveiled-01-30
https://telegra.ph/Brexit-Boris-Johnsons-Surprise-U-Turn-on-Brexit-Deal-01-30
https://telegra.ph/John-Peers-Scorches-Rankings-Eyes-Olympic-Glory-in-Unprecedented-Sprint-01-30
https://telegra.ph/FeyE-The-Next-Big-Thing-in-Tech-01-30
https://telegra.ph/911-The-Emergency-You-Cant-Afford-to-Ignore-01-30

#804 By 4240821 (82.115.4.230) at 2/13/2026 12:33:34 AM
https://telegra.ph/Aint-Nobody-Got-Time-for-That-The-Rise-of-Efficiency-in-the-Modern-World-02-07
https://telegra.ph/Emma-Raducanu-Stuns-Wimbledon-with-Unforgettable-Comeback-Victory-02-07
https://telegra.ph/Jablonec-Triumphs-Over-Slovácko-in-Epic-Midweek-Clash-02-07
https://telegra.ph/Ruby-Star-Andrews-Dazzles-with-Stellar-Performance-at-Annual-Gala-02-07
https://telegra.ph/India-National-Cricket-Team-vs-United-States-National-Cricket-Team-Match-Scorecard-Stunning-Upset-on-the-Horizon-02-07
https://telegra.ph/Jablonec--Slovácko-City-Turns-100-Solar-Nation-Looks-On-in-Awe-02-07
https://telegra.ph/Valencia-Stuns-Real-Madrid-in-Epic-Showdown-02-07
https://telegra.ph/Aston-Villa-Stumbles-in-Bournemouth-MOT-Shocking-Defeat-Leaves-Fans-in-Disbelief-02-07
https://telegra.ph/Sollefteås-Secret-Small-Town-Becomes-Unlikely-Hotspot-for-Cosmic-Discoveries-02-07
https://telegra.ph/2026-Winter-Olympics-Snowboarding-Set-to-Deliver-Unforgettable-Thrills-and-Epic-Competitions-02-07

Write Comment
Return to News
  Displaying 801 through 804 of 804
Prev | First
  The time now is 12:54:36 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *