用于学习目的的 SQL Express Edition、SQL Compact Editin 和 SQLCMD
我想从我在这里听说过的一些 SQL 教程网站学习 SQL 编程,但我需要一些执行查询的环境。我想我的计算机上安装了 SQL CE 和 SQL EE,但我对这些 DBMS 有一些疑问,并且我不确切知道如何使用 SQLCMD 实用程序,所以我希望这里有人有时间并且愿意向我解释以下内容:
由于在命令提示符下运行
sqlcmd -S.\sqlexpress
,命令给出“1>”提示我假设我已经安装了 SQL Express,但无论如何,由于我在已安装的程序中找不到 SQL Express 版本名称,我如何确定我在计算机上安装了什么?我可以通过使用 SQL EE(嵌入式)创建的 C# (VC# Express) 应用程序发布和使用数据库吗?
如何使用
sqlcmd
来学习SQL,即通过发出create、use、select...等命令
,再次强调是学习我不想学习的SQL运行脚本但使用像 MySQL 一样的交互式命令提示符(因为我想使用 SQL,所以我非常希望避免 DBMS 的图形工具)?请告诉我,如果您有其他建议,关于我应该更好地使用什么来学习如何使用 SQL 编程,或者我现在应该坚持上述内容。
提前致谢。
I want to learn programming in SQL from some SQL tutorial sites of which I heard of here but I need some environment for executing query's. I think I have both SQL CE and SQL EE installed on my computer but I have some doubts about these DBMS and I don't know exactly how to use SQLCMD utility so I hope someone here will have time and will to explain me the following:
Since running
sqlcmd -S.\sqlexpress
at command prompt command gives "1>" prompt I assume I have SQL express installed but anyway how can I be sure what I have installed on my machine since I cannot find in installed programs SQL Express Edition name?Can I ship and use database with my C# (VC# Express) application which was created with SQL EE (embedded?)?
How can use
sqlcmd
for learning SQL, that is by issuing commands likecreate, use, select...
, again emphasize is on learning SQL I do not want to run scripts but use interactive command prompt like with MySQL (since I want to use SQL I would pretty much like to avoid graphical tools for DBMS)?Please tell me if you have some other advice regarding as to what should I better use in learning how to program in SQL or should I stick with the above for now.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您将需要使用 Microsoft SQL Server Management Studio Express。这要容易得多,您可以保存查询。你可以直接从微软下载它,只需谷歌即可。
要将其与自定义程序一起使用,用户还必须安装 Express,除非您将数据库转换为其他内容。许多制作使用 SQL Server 数据库的程序的公司在其产品中都包含 SQL Express 的一部分。
w3schools 是开始学习 SQL 的一个好地方。
You will want to use the Microsoft SQL Server Management Studio Express. It's a lot easier and you can save your queries. You can download it straight from microsoft, just google it.
To use it with a custom program the user has to have Express installed as well unless you convert the database into something else. A lot of companies that make programs which use a SQL Server database ship their product with SQL Express part of it.
A great place to start learning SQL is w3schools.
开始使用 SQL 的一个好地方是 sql Zoo
A good place to get started with SQL is at sql zoo
我制作了一个小程序:SqlCdm,类似于 SDF 文件。
这是代码,接下来是一个简单的测试。
我的程序的用法显示:
可能 SqlCmd 支持它?但无论如何这里都是代码
SqlCeCmd.cs:
TestSqlCeCmd.bat:
I made a little program: SqlCdm like but for SDF files.
Here is the code, and a simple test follow.
The usage of my program show this:
May be SqlCmd supported it? But any way here is the code
SqlCeCmd.cs:
TestSqlCeCmd.bat: