I wrote a program by python that ran on a machine that is outside of the domain and needed to connect to a sql server 2012 that was inside of the domain. I used SQL server authentication. When I connected to sql server, I got the error message, Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
I didn't use windows authentication. Why did it say I used with windows authentication? Is it possible to access sql server with SQL server authentication from outside of domain?
I have done the followings.
1. Open the port 1433 on firewall on the machine of sql server.
2. Enable TCP/IP in Sql server configuration manager and don't use dynamic port.
3. Create a login account for SQL server authentication on sql server. It can work well between machines that are located in domain.
4. Set mix authentication mode on sql server.
5. Create a dsn with SQL server authentication.
6. Connection string in python: "DSN=myodbc;trusted_connection=true"
Except for above, anything else I shoul set up or configure?
Thanks.