Something in the following code is blocking everything after it from occurring. Is there something in this that I am not seeing? I have another block of code that is almost identical with a different SELECT string and it, too, blocks everything after it.
Any help is appreciated!
Cheers, Bradley
Public Sub SendFriendEmails()
'Popluate array of emails
Dim sql As String = "SELECT Friend1Email AS FriendEmail FROM vFriends WHERE (Friend2 = @UserID) UNION SELECT Friend2Email AS FriendEmail FROM vFriends AS Friends_1 WHERE (Friend1 = @UserID)"
Dim conn As New SqlConnection(ConnectionStrings("LocalSqlServer").ConnectionString)
Dim cmd As New Go to the complete details ...