dbTalk Databases Forums  

2008 - User Defined Type - Table

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss 2008 - User Defined Type - Table in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
adag617
 
Posts: n/a

Default 2008 - User Defined Type - Table - 12-18-2009 , 02:52 PM






I have an SP with a bunch of table variables used extensively
throughout. Is there any reason to declare these as User Defined
Table Type (new in 2008). I'm not passing these variables outside of
of the procedure presently but curious if there is any performance
benefit.

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: 2008 - User Defined Type - Table - 12-18-2009 , 04:18 PM






adag617 (andrew.dagostino (AT) wbmason (DOT) com) writes:
Quote:
I have an SP with a bunch of table variables used extensively
throughout. Is there any reason to declare these as User Defined
Table Type (new in 2008). I'm not passing these variables outside of
of the procedure presently but curious if there is any performance
benefit.
I see no reason to expect a performance benefit. If you only uses
table types in a single procedure, I see no point in defining table
types.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.