Avatar of Coloplast
ColoplastFlag for Denmark

asked on 

Access to SQL server from Microsoft Access application

Hi,
We have an Access applikation located on a share which uses a filedsn to get access to our SQL server.
We would like users to use their own credentials when accessing the SQL server.
How can we achieve this without the need of creating ODBC's on every user PC?
Regards
Rasmus
Microsoft SQL ServerMicrosoft Access

Avatar of undefined
Last Comment
ste5an
Avatar of ste5an
ste5an
Flag of Germany image

A file DSN does not prohibit the use of the credentials of the user.

But first of all: What do you mean with "their own credentials"? Windows Authentication or SQL Server Authentication?

Then, using one shared Access front-end is a bad practice, cause it may lead to increased corrupted front-end database files. Each user should have its own, local copy of the front-end.

And last but not least: Use DSN-less connections. See

https://www.experts-exchange.com/questions/27835736/How-to-create-an-Access-database-with-a-DSN-less-linked-table-to-a-SQL-database.html
Avatar of Dale Fye
Dale Fye
Flag of United States of America image

I prefer to use DSN-less connections.

No points please.
Avatar of Coloplast
Coloplast
Flag of Denmark image

ASKER

Sorry, "Users own credentials" yes that is Windows authentication.
I will try this DSN-less connection, but it's 100% clear for me where to enter this?
Can you clarify?
Thanks
<<Sorry, "Users own credentials" yes that is Windows authentication.>>

 That's a setting in SQL Server.   You have two choices for security with SQL: SQL Logins or Trusted Connections.

 You want the latter, which means SQL will assume that since they are logged into Windows, it should trust the connection.

 This is different than a DSN or DSN-Less, of which you can use either.

With a DSN-Less connection, all that says is that you've supplied all the information in the connection string and don't need a DSN to complete the connection.

 If you are using SQL Logins, then that means a username and password must be setup in SQL Server and supplied as part of the connection string (either via a DSN or without) in order to get a connection.

Jim.
ASKER CERTIFIED SOLUTION
Avatar of ste5an
ste5an
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo