读书人

怎么获取索引的创建语句

发布时间: 2012-04-13 13:50:24 作者: rapoo

如何获取索引的创建语句
不通过鼠标右键,如何获得某个索引的创建语句

网上找了一天的资料了,都没找到

而且我发现sp_helptext里面只有视图,触发器,存储过程和其他的一些创建语句,唯独没有索引的创建语句

大侠们帮忙想想看咋整

[解决办法]

SQL code
exec sp_helpindex tbindex_name index_description index_keys-------------------------------------------------------- ------------------------------------------------------------------------------------------------------ ----------------------------------------------------------------------------------------------------------------in_name nonclustered located on PRIMARY name 

读书人网 >SQL Server

热点推荐