title: Can't access my SQL Server without SQL Engine
body: <p>I have two computers. One is running SQL Server, and I can access the server using SQL authentication from the 2nd PC using SSMS.</p>
  <p>I have created a C# Windows Forms application that connects to the database. However, I couldn't access my server from the application.</p>
  <p>I disabled the firewall, allowed remote control, and allowed mixed mode authentication. I also forwarded required ports to my IP in my router settings.</p>
  <p>I tried both these connecting strings, but they didn't help:</p>
  <pre><code>&quot;Persist Security Info = False; User ID = gues; Password=gues;Initial Catalog = CoronaNurse; Server=&quot; + server;
  
  &quot;Data Source=&quot; + server + &quot;;Initial Catalog=CoronaNurse;Integrated Security=false;UID=gues;Password=gues&quot;;
  </code></pre>
  <p>(server is a string that have IP of my server)
  (gues is a login in my Server)</p>
  <p>The weird thing is when I login as <code>gues</code> in SSMS from my 2nd computer I can access the server in the first computer.</p>
  <p>The question is, how do I access my server from a computer that doesn't have SSMS or any specific Login?</p>
  <p>I need my application to be able to connect to my server without anything else installed, but I can't find where my problem is.</p>
  <hr />
  <p>Adding from comments:</p>
  <p>Im using the connecting to get a con string from my DB depends on the table i get with my <code>gue.login</code> function SqlDataAdapter</p>
  <pre><code>adapter = new SqlDataAdapter(&quot;select * from gue.login('&quot; + textBox1.Text.Trim() + &quot;', '&quot; + textBox2.Text.Trim() + &quot;', '&quot; + server + &quot;')&quot;, conn); 
  SqlCommandBuilder cb = new SqlCommandBuilder(adapter); 
  DataSet ds = new DataSet(); 
  adapter.Fill(ds); 
  string connection; 
  connection = ds.Tables[0].Rows[0][0].ToString();
  </code></pre>