The Connection String
The connection string is used to specify how the connection would be performed. It is a string made of different sections.Each section is created using the formula Argument=Value. The sections are separated by semi-colons. This would produce:"Argument1=Value;Argument=Value2;Argument_n=Value_n;"
Everything in this string is case-insensitive. If you had declared an OleDbConnection variable using the default constructor, to create the connection string, you can declare a String variable, "fill it up" with the necessary information, and assign it to the OleDbConnection.ConnectionString property.
This would be done as follows:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim oleConn As System.Data.OleDb.OleDbConnection
oleConn = New System.Data.OleDb.OleDbConnection
oleConn.ConnectionString = " "
End Sub
Labels: LANGUAGE .NET
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home