寻找方便修改SQL Server数据库结构的软件(100分)

J

Jao

Unregistered / Unconfirmed
GUEST, unregistred user!
SQL Server的数据库结构一旦设定就没法改,微软真够蹩脚。
我记得在什么地方见到过可以方便修改数据库结构的东东,现在找不到了
谁那有,我有分送
 
Permissions

ALTER TABLE permissions default to the table owner, members of the sysadmin
fixed server role, and to members of the db_owner and db_ddladmin fixed database roles.

Examples
A. Alter a table to add a new column

This example adds a column that allows null values and has no values provided through a DEFAULT definition. Each row will have a NULL in the new column.

CREATE TABLE doc_exa ( column_a INT)
GO

ALTER TABLE doc_exa ADD column_b VARCHAR(20) NULL
GO

EXEC sp_help doc_exa
GO

DROP TABLE doc_exa
GO



B. Alter a table to drop a column
This example modifies a table to remove a column.
CREATE TABLE doc_exb ( column_a INT, column_b VARCHAR(20) NULL)
GO
ALTER TABLE doc_exb DROP COLUMN column_b
GO
EXEC sp_help doc_exb
GO

DROP TABLE doc_exb
GO



C. Alter a table to add a column with a constraint

This example adds a new column with a UNIQUE constraint.

CREATE TABLE doc_exc ( column_a INT)
GO
ALTER TABLE doc_exc ADD column_b VARCHAR(20) NULL
CONSTRAINT exb_unique UNIQUE
GO
EXEC sp_help doc_exc
GO
DROP TABLE doc_exc
GO

摘自SqlServer7 help

 
人家要改的是库结构, 不是表结构
 
更改SQLSERVER数据库结构的工具, 我目前为止找到的最方便的工具就是
INTERDEV了, 完全GUI, 使用起来和FOXBASE, FOXPRO, ACCESS一样简单.
不仅可增加, 还可减少或更改字段设置. VIEW和PROCEDURE也是.
 
sorry,眼花了.
 
你用的是非曲直6.5吧,强力推荐7.0,表结构基本上可以达到任意修改。
 
用PowerDesigner吧
 
哪里有?
 
用ErWin吧:ftp.shtdu.edu.cn/incoming/erwin
修改表结构用Delphi带的SQL Explorer不错
 
多人接受答案了。
 
顶部