Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9113643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:00:37+00:00 2026-06-17T04:00:37+00:00

If this has been asked, I apologize in advance, I couldn’t find the right

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:00:39+00:00Added an answer on June 17, 2026 at 4:00 am

    You don’t need to specify a user or password if you want to use a trusted connection, instead use the paramater Trusted_Connection=yes. See here for the documentation.

    Something like this has worked for me in the past:

    cn = pyodbc.connect('DRIVER={SQL Native Client};
                         Server=1.1.3.4; DATABASE=mydb; 
                         Trusted_Connection=yes;')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Apologies if this has been asked before (I couldn't find the answer anywhere), but
I apologize if this has already been asked a different way but I couldn't
I apologize if this has been asked before, but I haven't quite found the
I apologize in advance if this has been asked before, but I haven't been
I'm sure this has already been asked and answered so I apologize in advance
I apologize if this has been asked, I've just filtered through about 40 questions
I know this has been asked many times and I apologize if the answer
I apologize if this has been asked before. I searched but did not find
I apologize if this has been asked but I can't seem to find it
Apologies if this has been asked before. I searched and couldn't find it. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.