Hello, this is a weird one, when I run the following code all rows are returned from the db. Imagaine what would happen if this was an update or delete.
Dim cmd As New NpgsqlCommand
cmd.Connection = conn
cmd.CommandText = "select * FROM ac_profiles WHERE profileid = @profileId"
cmd.Parameters.Add("@profile", 58)
Dim dt As DataTable = DataAccess2.DataAccess.sqlQueryDb(cmd)
DataGridView1.DataSource = dt
My question is why is this happening?