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 826 through 833 of 833
Prev | First
  The time now is 3:57:37 PM ET.
Any comment problems? E-mail us
#826 By 4240821 (178.173.249.36) at 3/14/2026 8:58:54 AM
https://telegra.ph/Cheltenham-Races-Today-RecordBreaking-Times-and-Surprise-Winner-Shake-Up-the-Stakes-03-13
https://telegra.ph/Chinese-Taipei-Shocks-the-World-with-Unprecedented-Olympic-Success-03-13
https://telegra.ph/Eric-Swalwells-Secret-Move-Shocks-Capitol-and-Reshapes-Power-Dynamics-03-13
https://telegra.ph/Mjölnarens-Skandal-Hela-Partiet-Kallas-Tillbaka--Vem-är-den-egentlige-Mjölk-Kungen-03-13
https://telegra.ph/ARIANNE-HARTONO-STEALS-THE-SHOW-BOOMING-DEBUT-ALBUM-SHATTERS-BILLBOARD-CHARTS-03-13
https://telegra.ph/Venoge-Festival-Sizzles-with-RecordBreaking-Attendance-and-Electrifying-Performances-03-13
https://telegra.ph/Pakistan-vs-Bangladesh-Cricketing-Showdown-Ignites-Global-Fervor-03-13
https://telegra.ph/Norbert-Himmler-Sparks-Global-Controversy-with-Secret-Alliance-Deal-that-Could-Reshape-International-Power-Dynamics-03-13
https://telegra.ph/KC-135-Revolution-NASA-Unveils-Solar-Powered-Aerial-Tanker-for-Space-Missions-03-13
https://telegra.ph/Erbils-Unexpected-Oil-Strike-Fuels-Global-Energy-Bargains-03-13

#827 By 4240821 (178.173.249.36) at 3/16/2026 6:04:52 PM
https://telegra.ph/Arsenals-Dramatic-Comeback-Stuns-Chelsea-in-Thrilling-Premier-League-Showdown-03-01
https://telegra.ph/Zlín-to-Plzeň-The-Unexpected-Route-Thats-Revolutionizing-Czech-Travel-03-01
https://telegra.ph/Arsenal-vs-Chelsea-Last-Minute-Drama-as-Blues-Edge-Past-Gunners-in-Thrilling-Premier-League-Clash-03-01
https://telegra.ph/Tilak-Varmas-Shocking-Revelation-The-Truth-Behind-the-Viral-Conspiracy-That-Could-Change-Everything-03-01
https://telegra.ph/Declan-Rices-Late-Game-Magic-Leaves-Arsenal-Fans-Breathless-in-Shocking-3-2-Comeback-03-01
https://telegra.ph/Aaron-Jones-Epic-Play-Shocks-NFLWatch-the-Unstoppable-Moment-That-Left-Fans-in-Awe-03-01
https://telegra.ph/Man-Us-Miracle-Comeback-Red-Devils-Stun-City-Giants-in-Dramatic-Twist-03-01
https://telegra.ph/Arsenals-Dramatic-Comeback-Stuns-Chelsea-in-Thrilling-Premier-League-Clash-03-01-2
https://telegra.ph/Ahmadinejads-Bold-Move-Irans-President-Defies-West-in-Historic-Speech-03-01
https://telegra.ph/Betis-vs-Siviglia-A-Clash-of-Titans-in-the-Spanish-La-Liga-03-01

#828 By 4240821 (178.173.249.36) at 3/17/2026 1:57:03 AM
https://telegra.ph/Australian-Snowboarder-Suffers-Devastating-Neck-Injury-in-High-Speed-Crash-02-11
https://telegra.ph/Ice-Hockey-Dominates-Olympic-Games-Schedule-Full-Results-02-11
https://telegra.ph/Alessandro-Hämmerles-Revolutionary-Investment-Strategy-Shakes-Financial-Markets-02-11
https://telegra.ph/Carl-Zeiss-Jena-Stuns-FC-Bayern-in-Dramatic-Upset-02-11
https://telegra.ph/Department-Store-Goes-Viral-After-Mysterious-Ghost-Caught-on-Security-Footage-02-11
https://telegra.ph/Brain-Training-Breakthrough-Scientists-Unlock-Secrets-to-a-Sharper-Faster-Mind-02-11
https://telegra.ph/Slafkovsky-Breaks-Record-Takes-International-Spotlight-with-ShowStopping-Skill-02-11
https://telegra.ph/fk-arkadag--al-nassr-fc-storm-the-field-with-lastminute-heroics-redefining-the-derby-for-the-ages-02-11
https://telegra.ph/Olympique-2026-Hockey-Rebels-Cities-Battle-for-the-Ice-Throne-in-Historic-Olympic-Showdown-02-11
https://telegra.ph/Germanys-Renewable-Revolution-alleMagnes-Green-Deal-Sparks-Global-Surge-02-11

#829 By 4240821 (178.173.249.36) at 3/17/2026 4:43:25 PM
https://telegra.ph/PSGs-Shocking-Move-Star-Player-Joins-Rival-Club-in-Mid-Season-U-Turn-03-17
https://telegra.ph/Prime-Video-Unveils-Exclusive-Series-A-Bold-Move-to-Rival-Netflix-and-Disney-03-17
https://telegra.ph/Man-City-vs-Real-Madrid-The-Ultimate-Clash-of-ChampionsWho-Will-Reign-Supreme-03-17
https://telegra.ph/Morten-Messerschmidts-Shocking-Comeback-How-the-Underdog-Defied-All-Odds-to-Win-the-Championship-03-17
https://telegra.ph/Chelseas-Star-Player-Makes-Shocking-Transfer-to-Rivals-03-17
https://telegra.ph/City-Lights-How-Urban-Innovation-is-Reshaping-the-Future-03-17
https://telegra.ph/Sporting-Lisbons-Historic-Victory-Shocks-Football-World-03-17
https://telegra.ph/Fussball-Heute-Shocking-Upset-as-Underdog-Stuns-Champions-in-Thrilling-Final-03-17
https://telegra.ph/Chelsea-vs-PSG-The-Clash-That-Will-Go-Down-in-History-03-17
https://telegra.ph/Bayern-Munich-vs-Bayer-Leverkusen-A-Clash-of-Titans-in-the-Bundesliga-03-17

#830 By 4240821 (178.173.249.36) at 3/19/2026 2:50:40 AM
https://telegra.ph/Alaves--Real-Sociedad-A-Thrilling-Derby-That-Could-Redefine-La-Liga-Standings-in-One-Night-02-05
https://telegra.ph/Channing-Tatum-Reveals-Surprising-New-Career-as-Global-Climate-Champion-Promises-Greener-Hollywood-02-05
https://telegra.ph/UDRs-Shocking-Unveiling-of-AI-Driven-Mind-Reading-Tech-Stuns-Global-Scientists-02-05
https://telegra.ph/Alaves--Real-Sociedad-LastMinute-Goal-Leaves-Real-Bewildered-02-05
https://telegra.ph/Sonnet-5-Makes-History-as-First-AIPenned-Shakespearean-Poem-Wins-Pulitzer-02-05
https://telegra.ph/Jonathan-Toews-Sparks-NHL-Chaos-Announces-Unexpected-Retirement-Before-Stanley-Cup-Finals-02-05
https://telegra.ph/Knicks-vs-Nuggets-NBAs-Irresistible-Showdown-Sparks-Nationwide-Frenzy-02-05
https://telegra.ph/Samsung-S26-Unveiled-NextGen-Foldable-Boasts-200Hz-OLED-UltraFast-5G-and-AIPowered-Camera-System-02-05
https://telegra.ph/BREAKING-الطقس-غدا-Forecast-to-Drop-80F-Overnight-Amid-RecordHeat-Wave-02-05
https://telegra.ph/Google-Doodle-Celebrates-20-Years-with-Interactive-Tribute-to-Innovation-02-05

#831 By 4240821 (178.173.249.36) at 3/19/2026 2:11:21 PM
https://telegra.ph/Champions-Rise-Unstoppable-Victory-in-the-Ultimate-Showdown-03-10
https://telegra.ph/Paul-de-Grande-Unveils-Shocking-New-Theory-That-Could-Change-Everything-03-10
https://telegra.ph/Amazon-Prime-Unveils-Shocking-New-Feature-Is-This-the-Future-of-Streaming-03-10
https://telegra.ph/Talia-Gibson-arrested-on-new-charges-The-shocking-revelation-that-rocked-the-nation-03-10
https://telegra.ph/Jesper-Bruun-Rasmussens-Bold-Move-Shakes-the-MarketHeres-What-It-Means-for-Investors-03-10
https://telegra.ph/Nicolas-Jacksons-Shocking-Comeback-How-the-Underdog-Defied-All-Odds-to-Win-the-Championship-03-10
https://telegra.ph/Barcelonas-Shocking-Secret-The-City-That-Never-SleepsAnd-Why-Its-Terrifying-03-10
https://telegra.ph/AVAV-Stock-Surges-Investors-Scramble-as-Tech-Giant-Unveils-Game-Changing-Innovation-03-10
https://telegra.ph/Tottenhams-Miracle-4-3-Comeback-Shocks-Premier-League-03-10
https://telegra.ph/Barcas-Star-Player-Threatens-to-Quit-Amid-Contract-Dispute-03-10

#832 By 4240821 (178.173.249.36) at 3/20/2026 1:13:18 PM
https://telegra.ph/Irene-Monteros-Shocking-Confession-The-Truth-Behind-the-Scandal-That-Rocked-the-Nation-03-03
https://telegra.ph/Barcelonas-Miracle-Messi-Scores-5-in-a-Row-as-the-Club-Crushes-Rival-in-Epic-Comeback-03-03
https://telegra.ph/Panamas-Secret-Gold-Rush-How-a-Hidden-Treasure-Could-Reshape-the-Countrys-Economy-03-03
https://telegra.ph/Trabzonspor-Stuns-Champions-Unstoppable-Attack-Shocks-Europe-03-03
https://telegra.ph/Trey-Hendricksons-Shocking-Comeback-How-He-Overcame-Adversity-to-Dominate-the-Competition-03-03
https://telegra.ph/Barcelona-vs-Atletico-Madrid-A-Clash-of-Titans-in-the-Spanish-La-Liga-03-03
https://telegra.ph/Macrons-Bold-Move-France-Faces-Backlash-as-Controversial-Policy-Sparks-Nationwide-Protests-03-03
https://telegra.ph/Karbonkel-The-Hidden-Threat-to-Our-PlanetWhat-You-Need-to-Know-Now-03-03
https://telegra.ph/Barcelonas-Shocking-Move-Star-Player-Joins-Rival-Club-in-Mid-Season-Transfer-Drama-03-03
https://telegra.ph/Wolves-Dramatic-Comeback-Stuns-Liverpool-in-Thrilling-Premier-League-Showdown-03-03

#833 By 4240821 (178.173.249.36) at 3/21/2026 7:29:12 PM
https://telegra.ph/Ingrid-Alexandra-Royal-Reign-in-the-Making-02-02
https://telegra.ph/Lec-Unveils-Revolutionary-Technology-Set-to-Transform-Daily-Living-02-02-6
https://telegra.ph/Marius-Borg-Høiby-Sparks-New-Wave-of-Youth-Leadership-with-Innovative-Vision-02-02-2
https://telegra.ph/Trevor-Noah-Breaks-Silence-on-New-Global-Comedy-Tour-That-Is-Taking-the-World-by-Storm-02-02-7
https://telegra.ph/Trevor-Noah-Breaks-Silence-on-New-Global-Comedy-Tour-That-Is-Taking-the-World-by-Storm-02-02-6
https://telegra.ph/Olivia-Dean-Redefines-Soulful-Soundscapes-with-Chart-Topping-Debut-Album-02-02-4
https://telegra.ph/Bad-Bunny-Breaks-Record-The-Music-Icon-Redefines-Global-Pop-Culture-02-02-16
https://telegra.ph/Grammy-Winners-2026-The-Unforgettable-Night-of-Breakthrough-Performances-and-Historic-Wins-02-02-5
https://telegra.ph/Addison-Rae-Sets-New-Record-with-Breakout-Music-Debut-Turning-TikTok-Fame-into-Hollywood-Stardom-02-02-2
https://telegra.ph/Bad-Bunny-Breaks-Record-The-Music-Icon-Redefines-Global-Pop-Culture-02-02-15

Write Comment
Return to News
  Displaying 826 through 833 of 833
Prev | First
  The time now is 3:57:37 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *