SasaYamaoka
New member
- Joined
- Apr 4, 2015
- Messages
- 2
- Programming Experience
- Beginner
Hi,
i am trying to learn C# programing language, so far i am an absolute beginner. I find visual studio and C# to be a fantastic tool.
I am trying to make a very simple windows form application that would connect to SQL server over internet with which a user could add or change data in the database. I made a simple web form and connected it to SQL to a specific table. I enabled in SQL server configuration management TCP/IP and added 1433 to ports. Disabled windows firewall, made changes in router for forwarding to 1433 and made static IP address.
I tested if i could connect SQL server from laptop to my PC over IP address and it works. But when i try to use the app it always says that there is an login error and thaht the domain is untrusted.
This is my connection string (IP is that of router):
<add name="SQLconnString"
connectionString="Data Source=xxx.xxx.x.x\SQLBUTINA,1433;Network Library=DBMSSOCN;Initial Catalog=KTRaspremanjeTEST_V5;User ID=Korisnik;timeout=6000"
providerName="System.Data.SqlClient" />
What am i doung wrong?
Thank you !!!!!!!!!!
Sasa
i am trying to learn C# programing language, so far i am an absolute beginner. I find visual studio and C# to be a fantastic tool.
I am trying to make a very simple windows form application that would connect to SQL server over internet with which a user could add or change data in the database. I made a simple web form and connected it to SQL to a specific table. I enabled in SQL server configuration management TCP/IP and added 1433 to ports. Disabled windows firewall, made changes in router for forwarding to 1433 and made static IP address.
I tested if i could connect SQL server from laptop to my PC over IP address and it works. But when i try to use the app it always says that there is an login error and thaht the domain is untrusted.
This is my connection string (IP is that of router):
<add name="SQLconnString"
connectionString="Data Source=xxx.xxx.x.x\SQLBUTINA,1433;Network Library=DBMSSOCN;Initial Catalog=KTRaspremanjeTEST_V5;User ID=Korisnik;timeout=6000"
providerName="System.Data.SqlClient" />
What am i doung wrong?
Thank you !!!!!!!!!!
Sasa