I often have to construct long and difficult queries "in code". I know, that I can pass any parameters using SqlDataAdapter.SelectCommand.Parameters.Add()
SqlDataAdapter.SelectCommand.Parameters.Add()