Solved

ODBC connection string for MS-SQL Server 6.5, mixed security

Posted on 1997-11-04
5
889 Views
Last Modified: 2008-02-07
I need to link an Access front end to an MS-SQL Server 6.5 database.  The system is configured using "mixed" security, ie, the user's ID and password on the Win/NT 3.51 workstation should be used by SQL Server to authenticate the user.

How do I set the ODBC connection string to do this from Access rather than asking for a user ID and password as happens with the default "ODBC;" connection string?
0
Comment
Question by:catcity
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:dhodge
ID: 1089050
Try connecting with a string such as

"ODBC;DSN=odbcname;UID=userid;PWD=pwd"

Substituting odbcname, userid and pwd for the relevant odbc name, user id and the password respectively.

This will make the connection without prompting the user for password and id.
0
 

Author Comment

by:catcity
ID: 1089051
That tells me how to do it using standard security techniques, dhodge.  I need to use MIXED security, ie, passing through a trusted connection as opposed to a specific login to SQL server.

The standard security, ie passing a UID & password, is well documented; I need to know how to use a trusted connection for mixed security.

If you know how to do this, please comment appropriately & I'll accept your answer, or if not I'll have to reject it (which I'd rather not do).
0
 
LVL 2

Accepted Solution

by:
Wiz_of_Oz earned 50 total points
ID: 1089052
if u are using the 2.65.* ODBC u can configure a new ODBC connection and check the flag "trusted connection", done this your connection string will be just the ODBC connection name.
i.e.: if u configured a connection named "ODBC_NEW" your connection string will be just "ODBC_NEW"....
let me know if this help u in solvign your prob.
0
 
LVL 2

Expert Comment

by:Wiz_of_Oz
ID: 1089053
sorry, in the answer i forgot to mention ODBC 3.*...
if u r using this ODBC engine, u will be prompted during the connection definition to select wich type of connection (trusted/UID,passwd) u will use...
tell me more about your odbc engine if the answer is not right to solve the prob.
:)

0
 

Author Comment

by:catcity
ID: 1089054
Thx for the proposed answer, Wiz of Oz.  I don't know what ODBC version I'm using, will find out on Monday and let you know.  Cya  then!
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question