I have a console application and in the App.config I need to add a connectionString to another SQL server that is in the same network.
If I try the connectionString to a local server by only passing the Server='localhost' its worked but I cannot make it work for an outside server.
Thanks
Here is the connection file
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup>
<connectionStrings>
<add connectionString="Server=LocalServer;database=DAtaBase;user=UserName;pwd=Password" name="Connection"/>
</connectionStrings>
</configuration>
Google could have saved you a lot of time and troublewhen asking a question please read thefaqon how to ask a question on this site as wellSERVER=MySqlNode\WebSqlorSERVER=10.0.0.4\SQLEXPRESSet al. Also, as @MethodMan said, read up on the connection strings.