I am a new developer and recently I want to develop a database website that used asp.net using c#. I tried to connect my website to SQL Server Database on the hosting domain that stored my web pages and I could access that database properly. However, if I want to access to SQL Server Database on my local computer that already connected to Internet. How can I do that? Please help to guide me step by step of how to do this.
Here is the connection string that I used to connect to SQL Server Database on the hosting domain that stored my web pages.
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="ConnectionString" connectionString="workstation id=MyDocuments.mssql.somee.com;packet size=4096;user id=xxxxxxx;pwd=xxxxxxxxxxxxxxx;data source=MyDocuments.mssql.somee.com;persist security info=False;initial catalog=MyDocuments"/>
</connectionStrings>
<system.web>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
</configuration>
Thanks you in advance for helps.