AM I doing the right syntax for this parameter?
da.SelectCommand = new SqlCommand("SELECT Member.MemberID, Member.Name , Member.Surname, Rentals.RentalID FROM Member,Rentals WHERE Member.MemberID = (@MemberID) Rentals.MemberID", c);
da.SelectCommand.Parameters.Add("MemberID", SqlDbType.VarChar).Value = txtID.Text;
ds.Clear();
da.Fill(ds);
dtgv1.DataSource = ds;
It is giving me an error "Incorrect syntax near 'Rentals'."
Thanks