开发者

create an INDEX for a TVP in SQL 2008

Can we create an Index for TVP's(Table valued Parameters) in SQL Serve开发者_开发技巧r 2008.

please can any one give the syntax.

Thanks In advance.. Vinay K


You can have primary key and unique constraints, which will automatically have indexes backing them, but you're unable to declare any indexes explicitly for table types


If you think your query could benefit from further indexes, pretty well you'll have to copy the rows from your TVP into a temporary table (not table variable), on which you can define any indexes you want. But obviously that will add some additional overhead (in time and memory costs)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜