I am struggling to get my query to work in c# usng the select * into statement which will copy the data of the table and create a new table.
using (SqlConnection con = new SqlConnection(connectionstring))
        {
            con.Open();
            using (SqlCommand cmd = new SqlCommand("select  pp.upc as upc , pp.description as                     Description,sp.qty_onhand as Qty" +
                          "into TempProductProfile from product_profile pp" +
                          "inner join store_products sp on" +
                          "pp.upc = sp.upc" +
                          "order by pp.description", con))
                   cmd.executenonquery(): <-- got error here         
        }
Can anyone point me the right way?. thanks
 
     
     
    