SQL和MDF文件 [英] SQL and mdf files

查看:149
本文介绍了SQL和MDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们
第一个问题
mdf文件和sql文件之间有什么区别,它们都在sql server中打开?但我不知道有什么区别吗?

第二个问题
如何在VB.NET中将sql文件添加到我的项目中?

Hi guy''s
1st question
what the difference between mdf files and sql files, both of them are opened in sql server ?? but i don''t know the difference ?

2nd question
how can i add sql file to my project in VB.NET ?

推荐答案

1)sql文件是带有sql脚本的文本文件,而mdf文件包含数据库以二进制格式.



2)您可以在vb.net中将sql文件添加到数据库项目中.

希望这会有所帮助(我有点急,所以我无法详细说明我的回答了:))
1) an sql file is a textfile with sql scripts, while an mdf file contains the database in a binary format.



2) You can add an sql file to database projects in vb.net.

Hope this helps (im in a bit of a hurry so I cannot elaborate on my answers :) )


第一题答案:
这将为您解释连接字符串 [连接字符串. connectionstrings.com/"target =" _ blank"title =" New Window> ^ ]与数据库对话.配置它并使用它.
Ans to Q1:
This will explain you the difference between mdf and sdf[^] files.

Ans to Q2:
To communicate with a sql file in your project, you just need a proper connection string[^] to talk to the database. Configure it ans use it.


这篇关于SQL和MDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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