In using
statement, you want to get value of connectionString
. But there is not any variable.
Change
SqlConnection conn = new SqlConnection("Data Source=baaa;Initial Catalog=InventorySystem;Integrated Security=True") ;
to
string connectionString= "Data Source=baaa;Initial Catalog=InventorySystem;Integrated Security=True";
Also, you have not ending bracket in using
statement.
using (SqlConnection connection = new SqlConnection(connectionString))