如何从SQL检索数据到Visual Basic? [英] How can I retrieve data from SQL to Visual Basic?

查看:79
本文介绍了如何从SQL检索数据到Visual Basic?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要检索一些通过SQL获取的数据并获取该信息并将其传递给Visual Basic,我该怎么办?

I need to retrieve some data that is obtained via SQL and get that info and pass it to Visual Basic, how can I do that?

推荐答案

链接指向您可以下载的代码示例有几个方向,运行SQL脚本生成数据库和表格,然后试用它们。

There are several directions where the links point to code samples you can download, run the SQL scripts to generate the database and tables then try them out.


  • 使用SqlClient托管数据提供程序,我有一个中介来提前
    MSDN代码示例
    尝试。
  • 使用Microsoft Entity Framework,我有一个
    MSDN代码示例
  • 还有使用Visual Studio中的数据向导。我提到这个,但不建议使用它们


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

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