连接到MS SQL Server [英] Connect to MS SQL Server
本文介绍了连接到MS SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在aspx应用程序中连接到Visual Basic中的SQL Server.我确实有连接字符串.如何连接到数据库并执行SQL语句?
谢谢
Hi,
I would like to connect to a SQL Server in Visual Basic within an aspx application. I do have the connection string. How do I connect to the database and execute SQL statements?
Thanks
推荐答案
如果sql server是MS Sql Server,请使用SqlCommand类与数据库进行通信
use SqlCommand class to communicate with the database if the sql server is MS Sql Server
我将首先阅读通过这个
ADO.NET代码示例 [
I would start by reading through this
ADO.NET Code Examples[^]
http://www.cs.swan. ac.uk/~csneal/ReliableWeb/Example.html [ ^ ]
点击此链接...进行GUI复活.....:)
http://www.cs.swan.ac.uk/~csneal/ReliableWeb/Example.html[^]
Follow this link......for GUI exaplaination.....:)
这篇关于连接到MS SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文