check this. problem in your connection string, and also you not specified Integrated Security
Create the .udl file. create the connection with .udl and the connectionstring from that .udl file
new SqlConnection("Data Source=(local);Database=CompanyName;User Id='';Password=''")