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 676 through 680 of 680
Prev | First
  The time now is 4:46:07 PM ET.
Any comment problems? E-mail us
#676 By 4240821 (45.192.45.37) at 10/30/2025 2:55:17 PM
https://sexonly.top/g/p80/p80wgzeuwyfxgkkhlf.php
https://lustful.su/g/p67/p67hudamrjezveuwwu.php
https://smutty.su/g/p96/p96rtvvwjsytfqjyjm.php
https://smutty.su/g/p84/p84dzrmpynnjiierhx.php
https://sluts.su/g/p56/p56dkfpreqnmkdkocv.php
https://nsfw.su/g/p81/p81acmjnqwgcrlleiu.php
https://lustful.su/g/p15/p15llxhtbtvzkxrgyl.php
https://sluts.su/g/p88/p88rrpnxilkmdwqkoq.php
https://sluts.su/g/p93/p93xvuchwdrtrobyhs.php
https://nsfw.su/g/p74/p74bhbvfejewojbttr.php

#677 By 4240821 (45.192.45.37) at 10/31/2025 1:24:01 PM
https://sexonly.su/g/p35/p35ajulvfbslemulqr.php
https://sexonly.top/g/p85/p85tvwocajaeqdhsto.php
https://lustful.su/g/p94/p94wjisynulsifnnyx.php
https://sexonly.su/g/p43/p43kzleqphdpatnnfv.php
https://lustful.su/g/p84/p84zdzoxngumpgvkjd.php
https://sexonly.top/g/p59/p59dlbgeafzlzowmwi.php
https://sexonly.su/g/p78/p78frlyonitsnykpdn.php
https://sexonly.top/g/p81/p81ewfyycicfeimmeg.php
https://sexonly.top/g/p87/p87bcaaofcnvwrflrd.php
https://sexonly.top/g/p88/p88mxtrbawhdndpxhs.php

#678 By 4240821 (45.192.45.37) at 11/1/2025 12:15:20 PM
https://sexonly.su/g/p17/p17tjaohqbitlbuaoi.php
https://smutty.su/g/p8/p8zhesawqmghlypls.php
https://nsfw.su/g/p2/p2slikaowktzrhmit.php
https://lustful.su/g/p76/p76bvhvjwujryklxee.php
https://sexonly.su/g/p7/p7atyryljytsvjqal.php
https://nsfw.su/g/p60/p60lkyhfwoexwtfrno.php
https://sexonly.top/g/p61/p61ztkcqalriecsbts.php
https://lustful.su/g/p73/p73qnylpejbsuokuyo.php
https://smutty.su/g/p33/p33pzphlwlaynhbxum.php
https://lustful.su/g/p23/p23dyaskkuecxzrsnp.php

#679 By 4240821 (45.192.45.37) at 11/1/2025 7:42:34 PM
https://smutty.su/g/p40/p40iudvcgilxpqjtsr.php
https://smutty.su/g/p2/p2drybooyawwixfpd.php
https://nsfw.su/g/p52/p52pbvohuomplneayr.php
https://lustful.su/g/p29/p29erbiabtdgxukmsd.php
https://sexonly.su/g/p37/p37msqjqniiztvwxog.php
https://sluts.su/g/p17/p17jmxrynawibhrfok.php
https://sexonly.top/g/p70/p70zipiumwdsnkhecq.php
https://smutty.su/g/p33/p33moinyvbxgehdaiw.php
https://sluts.su/g/p99/p99xxpcbtqamewlqmr.php
https://lustful.su/g/p87/p87uqrjacgyjqoroml.php

#680 By 4240821 (45.192.45.37) at 11/2/2025 11:45:25 PM
https://smutty.su/g/p87/p87eyqbhmykifsrlry.php
https://nsfw.su/g/p7/p7grceiwmrndsuajv.php
https://lustful.su/g/p54/p54uakmdwoefcwxrwp.php
https://sexonly.top/g/p70/p70asccwafpowotyqu.php
https://lustful.su/g/p33/p33lbkwpvvnwlfaocx.php
https://nsfw.su/g/p68/p68ohbqegrwqdavlqb.php
https://lustful.su/g/p31/p31gefdhjwvhaejbty.php
https://smutty.su/g/p66/p66ridkfsolcofihqm.php
https://nsfw.su/g/p37/p37atnnssyysdrykqf.php
https://smutty.su/g/p72/p72vguzeddtcchuzrc.php

Write Comment
Return to News
  Displaying 676 through 680 of 680
Prev | First
  The time now is 4:46:07 PM ET.
Any comment problems? E-mail us
User name and password:

 

  *  
  *   *