如何在visual studio 2012中创建数据库 [英] How to create a database in visual studio 2012

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

问题描述

vs2012 中创建Db,但如何创建表并在该表中插入一个值...

in vs2012 create Db but how to create table and insert a value in that table...

推荐答案

嗯,你可以总是尝试阅读您正在使用的数据库软件的文档。谷歌搜索会找到数百个样本。
Well, you could always try reading the documentation for the database software that you are using. And a Google search will find you hundreds of samples.


试试这个,

1.创建空的Access数据库。

2。打开Visual Studio。在Server Explorer选项卡中右键单击Data Connections并单击'Add Connections'。

3.将弹出一个新窗口。选择Microsoft Access数据库文件,然后单击确定。

4.然后在新窗口中单击浏览。然后选择你的数据库文件。

5.然后使用Access UI创建表,或者只在Visual Studio中激活创建表命令。

6.要创建表,只需右键单击访问您在sql server中添加的数据库并单击新查询。

这是Access数据库。
Try this,
1. Create empty Access Database.
2. Open Visual Studio. In Server Explorer tab Right Click on Data Connections and Click on 'Add Connections'.
3. A new Window will popup. select Microsoft Access Database File then Click Ok.
4. Then In new window click Browse. And select your database file.
5. Then either create Table using Access UI or just fire Create table command in Visual Studio.
6. To create table just right click on Access database that you added in sql server and click new query.
That is for Access Database.


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

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