Neil C. Obremski
  • About
  • Blog
  • Music
    • Moo
    • Necros
    • colbie
    • TravelEra
  • CPP
    • Multi Dimension Arrays and Pointer Pointers
    • Structures
  • Tech
    • ASP
    • Apache2 SSL Windows
    • Celery
    • Chromebook
    • Django
    • FFMPEG
    • IIS
    • JS >
      • Save Binary File to Disk in JavaScript
      • Simple JavaScript/AJAX Optimizations
    • Kindle Self-Publishing
    • Linux Shell
    • Mac OS X
    • QB
    • Pyodbc
    • SQL
    • Subversion for VSS Users
    • VSS
    • WinHttp
    • WSH
  • Games
    • Daggerfall
    • Minecraft
    • Thief >
      • Install Thief on 2000/XP
      • Run Thief without CD
      • Fix Thief Freeze
+1 (206) 795-1327

Neil's SQL Stuff


"The user is not associated with a Trusted SQL connection."

You might've specified the wrong user name, double-check that. Next if you're using SQL 2005 (including Express), go to the properties of your instance and see if you're allowing just Windows Authentication. Any SQL logins you create while in this mode are basically useless.

Use Windows NT Authentication in ADO Connection Strings

When you have a database set to authorize via Windows NT accounts, you can specify the password as you normally would. However, one of the great boons of this setup is leaving the password out entirely and letting Windows authenticate based on who is logged in! All you have to do is add Trusted_Connection=yes to your connection string!

Thanks: ADO Connection Strings - The Code Project.

Submit
Proudly powered by Weebly