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 701 through 717 of 717
Prev | First
  The time now is 6:10:11 PM ET.
Any comment problems? E-mail us
#701 By 4240821 (45.192.45.37) at 11/17/2025 10:22:15 PM
https://telegra.ph/A-New-Era-in-MMA-Dawns-as-shavkat-rakhmonov-Takes-Center-Stage-11-16
https://telegra.ph/Ecuadors-Unexpected-Surge-How-a-Small-Nation-is-Making-Waves-on-the-Global-Stage-11-16
https://telegra.ph/Tracy-Cortez-Stuns-Fans-with-Unstoppable-Win-at-UFC-Heartstopper-11-16
https://telegra.ph/Emergency-Helicopter-Crash-Shocks-Wellington-Authorities-Scramble-for-Answers-11-16
https://telegra.ph/Revolutionary-Nursery-Designs-Boost-Child-Development-and-Environmental-Sustainability-11-16
https://telegra.ph/Eubank-vs-Benn-2-The-Thrilling-Rematch-11-16-2
https://telegra.ph/Eubank-vs-Benn-2-The-Unstoppable-Force-Meets-the-Immovable-Object-11-16
https://telegra.ph/Stockholm-busunfall-sparks-urgent-safety-overhaul-passengers-left-shaken-11-16
https://telegra.ph/Stranger-Things-Cast-Reunites-for-Final-Season-Mystery-11-16
https://telegra.ph/roman-kopylov-unveils-fictional-breakthrough-that-rocks-the-internet-11-16-3

#702 By 4240821 (82.115.4.230) at 11/17/2025 11:11:02 PM
https://nsfw.su/activfbbg25hf4f
https://lustful.su/activ45badbffca
https://sluts.su/activ1fec4dh5fh
https://nsfw.su/activfb4ad5fa31
https://nsfw.su/activ4e23adahch
https://sluts.su/activag124a34hg
https://nsfw.su/activfh5da3aa3e
https://sexonly.su/activ1f1hcd2gb1
https://sexonly.top/activc534h4fbcd
https://smutty.su/activbhfeddff3c

#703 By 4240821 (82.115.4.230) at 11/19/2025 8:56:01 AM
https://lustful.su/activ155e241bc2
https://smutty.su/activb1c245d4fc
https://sexonly.su/activ1hdb4cdfad
https://nsfw.su/activ2b1414h521
https://sluts.su/activg5b3aa2a34
https://sluts.su/activag2ebb23gg
https://lustful.su/activhda4a5aea5
https://sexonly.su/activeeb311ffb4
https://lustful.su/activgdhcdcfd3h
https://sexonly.su/activc2gdad5d3b

#704 By 4240821 (82.115.4.230) at 11/19/2025 11:11:44 AM
https://smutty.su/activ21bhbddgab
https://sluts.su/activ1aa21c4h4b
https://smutty.su/activgh3bdhcd5e
https://sluts.su/activd2aa2gdc11
https://sluts.su/activgcdcg4h5hg
https://smutty.su/activ5hf2fb35dh
https://sluts.su/activa5h144a55b
https://nsfw.su/activ524c1ed11f
https://sexonly.top/activad1fe1eehh
https://sexonly.su/activ2d4bhghheh

#705 By 4240821 (82.115.4.230) at 11/20/2025 6:27:09 PM
https://lustful.su/activcdbcffceh2
https://lustful.su/activef3af3aga2
https://sexonly.top/activ25ch4ad225
https://sexonly.su/activ331h51e4a4
https://lustful.su/activg3db3b5gg2
https://sexonly.top/activbdcgccbgef
https://sexonly.top/activbf1h4g3ca2
https://lustful.su/activgbfcd51a22
https://lustful.su/activa2da4h1cf3
https://sexonly.top/activh3gh2ac1ce

#706 By 4240821 (82.115.4.230) at 11/21/2025 8:49:34 AM
https://lustful.su/activ24behhe2gb
https://lustful.su/activ1ghgc333cg
https://lustful.su/activa4f245e3d1
https://sexonly.su/activ5dghfbdf51
https://sexonly.su/activ4hea425h35
https://smutty.su/activg3e413gff1
https://smutty.su/activdgf4bf55bb
https://sexonly.su/activge4hhfge3c
https://nsfw.su/activa2aecc414h
https://lustful.su/activ14aeefbg5g

#707 By 4240821 (45.192.45.37) at 11/21/2025 11:38:45 AM
https://telegra.ph/Explosive-Breakthrough-Shocks-Markets-as-Unseen-Tech-Emerges--vandaag-Goes-Viral-11-18
https://telegra.ph/Giannis-Goes-Supernova-as-Bucks-Stun-Rivals-in-Electric-Showdown-11-18
https://telegra.ph/assan-ouédraogo-stuns-the-world-with-a-secret-project-that-rewrites-the-rules-11-18
https://telegra.ph/lise-klaveness-sparks-global-spotlight-reshaping-footballs-future-11-18
https://telegra.ph/Dama-til-Takes-the-Spotlight-A-Saucy-Night-Out-That-Sparks-the-City-11-18
https://telegra.ph/Budget-Cuts-Spark-Nationwide-Protests-Government-Faces-Backlash-Over-Spending-Reductions-11-18
https://telegra.ph/Cavaliers-Rally-to-Defeat-Bucks-in-Thriller-Shocking-Playoff-Expectations-11-18
https://telegra.ph/Germany-vs-Slovakia-White-Knuckle-Showdown-Sparks-Last-Second-Thriller-11-18-3
https://telegra.ph/Loiodice-Secrets-Unveiled-The-Shocking-Truth-Everyones-Talking-About-11-18
https://telegra.ph/Thunder-Rolls-at-MetLife-Stadium-as-Fans-Ignite-a-Record-Breaking-Night-11-18

#708 By 4240821 (81.19.141.45) at 11/23/2025 4:08:30 AM
https://lustful.su/activhfgcac5cge
https://smutty.su/activ335db1g5hg
https://sluts.su/activ12dhdebccf
https://nsfw.su/activ34e1b4ag23
https://smutty.su/activf2bg5gbgdd
https://nsfw.su/activb3agc4c542
https://smutty.su/activa3aah4gdbc
https://lustful.su/activ15d3b5h313
https://smutty.su/activd144e543gc
https://sexonly.su/activ2ah52h1b4a

#709 By 4240821 (45.192.45.37) at 11/23/2025 3:49:46 PM
https://telegra.ph/Global-Celebrations-Ignite-with-Unprecedented-Spirit-on-International-Mens-Day-11-19
https://telegra.ph/Malis-Hidden-Gems-Spark-Global-Cultural-Renaissance-11-19
https://telegra.ph/Weather-Warning-Extreme-Heatwave-Sweeps-Across-the-Nation-11-19
https://telegra.ph/Magne-Myrmo-Unveils-Groundbreaking-Innovation-Set-to-Transform-the-Industry-Overnight-11-19
https://telegra.ph/Epstein-Exposé-Inside-the-Hidden-Billionaires-Club-That-Changed-Everything-11-19-2
https://telegra.ph/Davis-Cup-Unstoppable-Spain-Sweeps-into-Final-11-19
https://telegra.ph/Mitch-Marsh-AFL-Set-to-Dominate-the-Season-with-Unstoppable-Power-11-19
https://telegra.ph/Dwayne-Johnson-Breaks-Box-Office-Records-with-His-New-Blockbuster-Hit-11-19
https://telegra.ph/btc-usd-Sparks-Breakout-Rally-as-Bitcoin-Hits-All-Time-High-11-19-2
https://telegra.ph/Election-Shock-personlige-stemmer-2025-Redefines-the-Race-11-19

#710 By 4240821 (178.217.45.42) at 11/23/2025 5:52:33 PM
https://smutty.su/activfhbc12bd1c
https://smutty.su/activ3c3132gc5g
https://smutty.su/activddcbhdafeb
https://lustful.su/activefb3f2cbce
https://sluts.su/activ543cdb5dba
https://sexonly.top/activ2db1hbeahf
https://smutty.su/activ224g3fb5ca
https://sexonly.top/activge51hega4g
https://lustful.su/active2eefbefde
https://nsfw.su/activech21dade4

#711 By 4240821 (82.115.4.230) at 11/24/2025 8:26:33 PM
https://smutty.su/activ4151g2hcc1
https://sluts.su/activ54bhce25de
https://nsfw.su/activcg1egcg5ag
https://sluts.su/activahbf1cba2a
https://sluts.su/activ5hfdhbd342
https://sexonly.top/activ5h3gafahbd
https://sexonly.su/activd1b2he214a
https://nsfw.su/activc1dcfhbf3f
https://sexonly.top/activ51bdgg2hfd
https://nsfw.su/activbg5f2eg21c

#712 By 4240821 (45.192.45.37) at 11/25/2025 12:26:56 AM
https://telegra.ph/Meta-stock-rockets-on-AI-hype-as-Meta-Platforms-bets-big-on-the-metaverse-11-19
https://telegra.ph/Live-Nation-Unveils-Epic-New-Concert-Series-Set-to-Redefine-Live-Entertainment-11-19
https://telegra.ph/Breaking-Global-Leaders-Gather-for-Historic-Summit-on-Climate-Change-11-19
https://telegra.ph/Poutine-Revolution-The-Delicious-Cheesy-Tide-Taking-Over-the-Food-World-11-19
https://telegra.ph/Angela-Moody-The-Unseen-Force-Behind-the-Market-Crash-That-Shook-the-World-11-19
https://telegra.ph/Panariellos-Bold-Move-Italian-Chef-Shakes-Up-the-Food-World-11-19
https://telegra.ph/terje-helland-unveils-a-time-bending-masterplan-that-has-the-internet-on-fire-11-19
https://telegra.ph/Im-a-celeb-new-arrivals-turning-heads-and-stealing-hearts-11-19
https://telegra.ph/Dolph-Zigglers-Stunning-Comeback-The-Showstopper-Sets-the-Ring-on-Fire-Again-11-19
https://telegra.ph/Rheinmetall-Stock-Surges-as-European-Defense-Spending-Rises-11-19

#713 By 4240821 (82.115.4.230) at 11/25/2025 2:15:03 PM
https://sluts.su/activ3h5db345ah
https://nsfw.su/activh4h1132ghh
https://smutty.su/activc33g4553ah
https://smutty.su/activdc5hcbca4f
https://sexonly.top/activ3fbe5ha1a4
https://sexonly.su/activbdg3ba3geb
https://sluts.su/activ3a5gef55fg
https://smutty.su/activh11b232fge
https://smutty.su/activ4e3cf51cgc
https://sexonly.top/active223h2g1ah

#714 By 4240821 (208.123.185.42) at 11/26/2025 6:48:29 PM
https://lustful.su/activfbeed5bagh
https://nsfw.su/activ53e454daee
https://sluts.su/activee4bbhchef
https://lustful.su/activadaa1ebfec
https://sexonly.su/activf3be2g33bh
https://sluts.su/active1ge4bcdc1
https://sexonly.su/activ3h1bh13ec1
https://nsfw.su/activ231c4gcgeh
https://lustful.su/activ3ef3be22bh
https://smutty.su/activb4c2e4ba3a

#715 By 4240821 (208.123.185.42) at 11/27/2025 5:10:24 AM
https://smutty.su/activcb21dac4c4
https://lustful.su/activ4e3dh13hc1
https://sexonly.su/activg2ged5e52a
https://lustful.su/activ1dfbe53f4e
https://smutty.su/activfe3de5431h
https://lustful.su/activfbfghg1efe
https://sexonly.su/activ1cbbc1514h
https://sluts.su/activ4f24cb4cae
https://nsfw.su/activagdc1g34h4
https://sexonly.su/activeg5h1dd2a1

#716 By 4240821 (208.123.185.42) at 11/27/2025 10:13:40 AM
https://sluts.su/activhaedabd2ca
https://sexonly.top/activ55aeeda42c
https://nsfw.su/activfh12ah35fd
https://sluts.su/activb43535gh1h
https://nsfw.su/activ11b341df4a
https://sluts.su/activ521dc5f1cg
https://smutty.su/activddd44bcage
https://sluts.su/activ3fdcg3g34e
https://sexonly.top/activeebfeedg33
https://nsfw.su/activh3fcdeec43

#717 By 4240821 (208.123.185.42) at 11/27/2025 1:19:02 PM
https://telegra.ph/Shane-Warne-Set-to-Make-Stunning-Comeback-in-Major-Cricket-Tournament-11-21
https://telegra.ph/Spurs-vs-Hawks-Explosive-Showdown-Delivers-Nail-Biting-Drama-and-Late-Game-Fireworks-11-21-2
https://telegra.ph/Texans-vs-Bills-Set-to-Ignite-Gridiron-Showdown-in-Heart-Stopping-Battle-11-21-3
https://telegra.ph/bus-crash-auckland-chaos-erupts-as-rescue-teams-race-to-the-scene-11-21-2
https://telegra.ph/btc-usd-Sparks-Breakout-Rally-as-Bitcoin-Hits-All-Time-High-11-21
https://telegra.ph/england-vs-australia-Ashes-thriller-erupts-as-rivals-clash-in-late-night-drama-11-21-3
https://telegra.ph/pinnekjøtt-test-2025-ignites-kitchen-fever-see-why-the-Nordic-centerpiece-is-stealing-the-spotlight-11-21-3
https://telegra.ph/nfl-Firestorm-Underdog-Rookie-Nails-Game-Winning-OT-TD-in-Incredible-Comeback-11-21
https://telegra.ph/Esdeekid-Unveiled-The-Secret-Talent-Shaking-Up-the-Industry-11-21
https://telegra.ph/KNMI-Predicts-Record-Heatwave-for-Europe-This-Summer-11-21

Write Comment
Return to News
  Displaying 701 through 717 of 717
Prev | First
  The time now is 6:10:11 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *