Visual Studio中2种创建数据库方式的区别 [英] difference between 2 ways of create database in visual studio

查看:220
本文介绍了Visual Studio中2种创建数据库方式的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


你好这两种方式之间的区别


1 - 右键单击​​--->添加新项目---> sql服务器数据库这将使用.mdf生成数据库



另一种方式是



2服务器浏览并连接你已经创建的sql应用程序,这将生成.dbo



有什么区别


谢谢。 


 

解决方案

你好NVS37,


根据你的描述,


首先,我们可以使用添加项目生成数据库项。


其次,我们可以使用服务器资源管理器连接数据库以创建表和查询数据。


创建本地数据库没有区别。但是当我们使用add item创建数据库时,我们只能创建一个loadDB数据库,但如果我们想从SQL Server创建一个数据库,我们需要先连接Sql Server然后再创建它。


希望它对你有所帮助。


真诚地,


奥斯卡


hello what the different between those 2 ways

1-right click--->add new item--->sql server database this will generate database with .mdf

the other way is

2-server explore and connect with sql application u already created there this will generate .dbo

what is the difference

Thank you. 

 

解决方案

Hi NVS37,

According to your description,

First, we could use add item to generate database item.

Second, we could use server explorer to connect the database to create tables and query data.

There is no difference in creating local database. But when we create a database with add item, we could only create a loadDB database, but if we want to create a database from SQL Server, we need to connect the Sql Server first then crate it.

Hope it helpful for you.

Sincerely,

Oscar


这篇关于Visual Studio中2种创建数据库方式的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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