积极答复者
爲什麽在SQLServer2005中導出腳本的時候索引信息沒出來

问题
-
我在SQLServer 2005中使用導出腳本的方法導出表結構, 但是發現索引信息沒有 但是約束的信息是可以導出來的。 後來在management studio中的工具欄上的tools 的options中選擇scripting選項,在裏面將script indexes選項設置為TRUE,也還是不行,重啟下SQLServer也不行。 請問到底需要怎樣導出含有index的表結構? 先謝謝大家了
If you haven't all the things you want,be grateful for the things you don't have that you didn't want.
答案
-
Just tried youe way, works for me. What's sql2k5 service pack level? Client tools have same service pack as server does?
- 已标记为答案 Hong-Gang Chen - MSFTModerator 2009年11月25日 8:51
-
- 已标记为答案 Hong-Gang Chen - MSFTModerator 2009年11月25日 9:03
全部回复
-
Just tried youe way, works for me. What's sql2k5 service pack level? Client tools have same service pack as server does?
- 已标记为答案 Hong-Gang Chen - MSFTModerator 2009年11月25日 8:51
-
在建立主键的时候,会自动为主键创建主索引
比如
CREATE TABLE [dbo].[BandWidth](
[BWB_ID] [numeric](10, 0) IDENTITY(1,1) NOT NULL,
CONSTRAINT [PK_BANDWIDTH] PRIMARY KEY CLUSTERED
)
不知道你是不是这个意思?
Wenn ich dich hab’,gibt es nichts, was unerträglich ist.坚持不懈!My blog~~~ -
Just tried youe way, works for me. What's sql2k5 service pack level? Client tools have same service pack as server does?
SQLServer 2005 3077
I just export the script on the local machine.
If you haven't all the things you want,be grateful for the things you don't have that you didn't want. -
Just tried youe way, works for me. What's sql2k5 service pack level? Client tools have same service pack as server does?
SQLServer 2005 3077
I just export the script on the local machine.
If you haven't all the things you want,be grateful for the things you don't have that you didn't want. -
Just tried youe way, works for me. What's sql2k5 service pack level? Client tools have same service pack as server does?
SQLServer 2005 3077
I just export the script on the local machine.
If you haven't all the things you want,be grateful for the things you don't have that you didn't want.
it works fine for me too.
Wenn ich dich hab’,gibt es nichts, was unerträglich ist.坚持不懈!My blog~~~ -
刚刚我测试了sql server 2008 与sql server 2005都能导出索引脚本
你的操作方法是不是有问题
我放一段生成的脚本代码.
CREATE NONCLUSTERED INDEX [CostAD_ContainIndex] ON [dbo].[CostAd]
(
[CostDate] ASC,
[SiteId] ASC
)
INCLUDE ( [CostMoney]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] -
- 已标记为答案 Hong-Gang Chen - MSFTModerator 2009年11月25日 9:03