Try
Using connection As New SqlConnection(ConnectionString)
connection.Open()
SQL = "SELECT @PARAM FROM SystemOps"
sqlCmd = New SqlClient.SqlCommand(SQL, connection)
sqlCmd.Parameters.Add(New SqlClient.SqlParameter("@PARAM", SqlDbType.VarChar)).Value = "SystemNavn"
' .. and so on...
When I run the code, it returns with a result of "SystemNavn"
(which is the name of the column in the table), instead of the value of that column in the current row. What am I doing wrong?