如何创建SQL Server数据库 [英] How to create SQL server database

查看:80
本文介绍了如何创建SQL Server数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以建议我如何创建SQL Server数据库吗?我在SQL Sever Management Studio Express中尝试了它,但是创建失败.

我还通过右键单击Sever Explorer>>尝试了Visual Studio 2008.数据连接>>创建新的SQL数据库,但是它不起作用.



请帮忙.

感谢

Hi,

Could anybody advise me how to create SQL server database? I tried it in SQL Sever Management Studio Express but it failed to create it.

I also tried it Visual Studio 2008 by right clicking Sever Explorer >> Data Connections >> Create New SQL Database but it did not work.



Please help.

Thanks

推荐答案

启动SQL Management Studio,并连接到您的服务器实例.除非拥有此功能,否则您将无法做任何有用的事情!

连接后,窗口左侧将显示一个对象资源管理器"窗格:右键单击数据库",您将获得一个包含新建数据库..."的上下文菜单.选择该菜单.

应该出现一个新对话框,给它取一个明智的名称,或者将其命名为"Testing",如果只是为了确保一切正常.按确定.

对话框将关闭,您将返回到SQL Server Management Studio屏幕.
在对象资源管理器中单击数据库"旁边的"+",您应该在列表中看到您的数据库(当前为无表).

如果您在任何阶段都遇到问题,请记下错误消息(如果有)以及到达的位置,然后使用此答案下方的答复"小部件来描述问题.
Bring up SQL Management studio, and connect to your server instance. Until you have this, you can''t do anything useful!

When you are connected, there is an Object Explorer pane on the left hand side of the window: right click "Databases" and you should get a context menu which includes "New Database..." Select that.

A new dialog should appear, give it a sensible name, or call it Testing if this is just to be sure it all works. Press OK.

The dialog will close, and you will be back at the SQL server management studio screen.
Click the "+" beside "Databases" in the Object Explorer, and you should see your (currently table-less) database in the list.

If you have a problem at any stage, note down the error message (if any) and where you had got to, and use the "Reply" widget below this answer to describe the problem.


您拥有创建数据库的权限
you have permission for creating database


这篇关于如何创建SQL Server数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆