| Author: Vishnu K J 04 Aug 2008 | Member Level: Gold | Rating: Points: 0 |
using the dbCon.Close() we can disconnect an open daatbase connection.
|
| Author: ANIL PANDEY 04 Aug 2008 | Member Level: Diamond | Rating: Points: 3 |
Simply For Clossing the Connection from the Database
What ever Connection u have opened Previously u can close it like
SqlConnection Con = new SqlConnection() Con.Open();
-- -- -- - -- - -
Con.Close()
Regards Anil Kumar
|
| Author: UltimateRengan 04 Aug 2008 | Member Level: Diamond | Rating: Points: 4 |
hi,
Dim strConn As String strConn = "USER=ttttt;PASSWORD=xxxx;SERVER=xxxxxx;DATABASE=Emp" Dim MySQL As String = "Select empno, empname from Emptbl" Dim MyConn As New SqlClient.SqlConnection(strConn) myConn.close()
|