SQL Server Management Studio can help take the guesswork out of creating connection strings for PowerShell applications.
Public Function MyFunction(ByVal id As Int) As Object Dim sSQL As New MySqlCommand sSQL.Connection = db1 sSQL.Parameters.AddWithValue("@id", ID) sSQL.CommandText ...