Dim builder As New SqlConnectionStringBuilder("Provider=SQLNCLI10.1;Integrated Security=SSPI;Persist Security Info=False;User ID='';Initial Catalog=MyTable;Data Source=BS-120471\SQLEXPRESS;Initial File Name='';Server SPN=''")
builder.ConnectTimeout = 600
' Set more properties here.
Using conn As New SqlConnection(builder.ToString())
conn.Open()
...
End Using
.ToString() it when you're done to get the connection string it represents. Unfortunately the OleDbConnectionStringBuildVisual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.
TRUSTED BY
ASKER
Provider=Microsoft.Jet.OLE
THanks!