Click here to Skip to main content
15,069,665 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all,
I have an windows application which is perfectly working database resides LAN (means on windows server).
I have created an App.config file which have following code

XML
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <connectionStrings>
    <add name="FutureConnectionString" connectionString="Data Source=future-ser;Initial Catalog=DBname; User ID=username;Password=password" providerName="System.Data.SqlClient"/>
  </connectionStrings>
</configuration>



Now I want that when I execute this windows application it should access the database which resides online

Please help me
Posted
Comments
   
Do you think it's a question?
—SA

1 solution

Yes, you can connect.

Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase;
User ID=myUsername;Password=myPassword;


Also refer to the website: http://www.connectionstrings.com/sql-server-2005[^]
   
Comments
bkthebest 13-Mar-13 3:40am
   
Thanks Willington

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900