SQL Server Management Studio - 确定数据类型

时间:2012-11-14 20:45:09

标签: sql sql-server

我刚在SQL Server Management Studio中创建了一个表,现在我忘记了我为某些字段分配的数据类型。我如何访问该信息?

4 个答案:

答案 0 :(得分:3)

右键单击表格,选择“设计表格”。

答案 1 :(得分:3)

如果在Sql Server Management Studio的查询窗口中选择表名 然后按 ALT + F1 ,它将显示该表的详细信息。

在后台快捷键中将代表您执行sp_help,因此在此示例中它执行:sp_help users,这比输入快得多。

enter image description here

Source Here

答案 2 :(得分:1)

select * from information_schema.columns where table_name = <yourtable>

答案 3 :(得分:1)

sp_help tablename . Gives you information about your table including fields and datatypes
相关问题