I can loop through each Parameter in SQL Command but how do I log the parametername and Value?
Public Sub LogParams(sqlcmd As SqlCommand)
Dim strParam As String = ""
For Each p As SqlParameter In sqlcmd.Parameters
strParam += 'how to get Name and Value of parameter?
Next p
End Sub
p.and see the suggestions.