Working With Connection Strings in VS2008/2005

Working with connection strings
http://msdn2.microsoft.com/en-us/library/ms254978(VS.80).aspx

‘Sample VB Code

Dim builder As New System.Data.SqlClient.SqlConnectionStringBuilder
builder("Data Source") = "(local)"
builder("Integrated Security") = True
builder("Initial Catalog") = "AdventureWorks;NewValue=Bad"
Console.WriteLine(builder.ConnectionString)

Leave a Reply

Your email address will not be published. Required fields are marked *