We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Public Function Open() As Boolean Try If Not Me.ConnPath = String.Empty Then 'If Me.Conn.State.Closed Then 'Create connection if non-existant Conn = New SqlConnection(ConnPath) 'End If Conn.Open() 'Successful Return True Else MessageBox.Show("The connection could not be opened because the application did not set the SQL connection path before trying to open a connection to the SQL Database.", "SQL Connection Failed", MessageBoxButtons.OK, MessageBoxIcon.Error) Return False End If Catch ex As Exception MessageBox.Show("Unable to open a connection to the SQL database." & vbCrLf & "Detail:" & vbCrLf & ex.ToString, "SQL Connection Error", MessageBoxButtons.OK, MessageBoxIcon.Error) 'Failed Return False End Try End Function 'Where ConnPath = "Data Source=SQLTEST\SQLTEST;Initial Catalog=CDH;Persist Security Info=True;User ID=XXXXX;Password=XXXXX"
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Visual Basic Json to CSV Converter - Converting large json files to csv||2||90|
|Images showing on the internet -- asp.net -- VB.net. Why some do and some don’t.||3||52|
|Applying Roles in Common Scenarios||3||44|
|denied execute as||13||57|
Join the community of 500,000 technology professionals and ask your questions.