If this has been asked, I apologize in advance, I couldn't find the right answer, although I've found similar questions.
I'm trying to connect to a SQL Server 2008 DB by using it's IP / Port using trusted connection.
One additional point of complexity is: The database is outside of the US and usually we log in via Citrix. After logging into citrix, it uses our windows credentials (not sure if that impacts the issue).
I have tried several different types of connection strings
Driver=SQL Server
Driver=SQL Native Client
Driver=SQL Server Native Client 10.0
I've also tried differen't formats of including the port, as well as messing with the Network Library when using the IP route.
I was hoping someone could help me understand 2 things.
1) (Most importantly) How do I figure out how to properly connect without simple trial and error. I tried checking connectionstrings.com but that didn't really help all that much. I haven't been able to find anything online.
2) If someone can help me out with connection string.
Here's an example of what I'm doing:
cn = pyodbc.connect(r'DRIVER={SQL Native Client};Server=1.1.3.4,1234;Network Library=DBMSSOCN;Initial Catalog=Test;UID=DOM\me;Pwd=pass')
Any help/guidance is much appreciated.