Conn.open和Conn.close [英] Conn.open and Conn.close

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

问题描述



要在SQL Server中使用Conn.open和Conn.close的地方.它的用途是什么.

在此先感谢.

Hi,

Where want to use Conn.open and Conn.close in sql server. Whats the use of it.

Thanks in Advance.

推荐答案

如果您不知道它的用途,那么想使用"就没有意义了.

这不是"Conn".从System.Data.Common.DbConnection派生的类很少,请参见:

http://msdn.microsoft.com/en-us/library/system. data.sqlclient.sqlconnection.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.data.common.dbconnection.open.aspx [ ^ ],
http://msdn.microsoft.com/en-us/library/system.data.common.dbconnection.close.aspx [ ^ ].

一个快速的答案应该足够了:您要使用它,否则将无法正常工作.

—SA
If you don''t know the use of it, your "want to use" makes no sense.

And this is not "Conn". There are few classes derived from System.Data.Common.DbConnection, see:

http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.aspx[^],
http://msdn.microsoft.com/en-us/library/system.data.common.dbconnection.open.aspx[^],
http://msdn.microsoft.com/en-us/library/system.data.common.dbconnection.close.aspx[^].

A quick answer should be enough: you want to use it because otherwise nothing can work.

—SA


conn.open()用于连接数据库

conn.close()用于断开与数据库的连接
conn.open()is used to connecting to database

conn.close()is used to disconnecting from database



首先了解连接和断开连接的体系结构将对您有很大帮助
Hi,
First of all understand the connected and disconnected architecture it will help u lot


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

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