SQL 2014 connection from an ODBC client on Excel queries created by administrator.

I found a topic with the above subject, but the solution is not what I am looking for.

A bit of a background.
We changed our ERP sytem. A to B.
For the ERP A I would create two ODBC connections (System DSNs), for 32 and 64 bits with the same name / settings on each computer, using SQL Server authentication.
Any Excel query / report created using the above connection could be open any computer with access to the location where the report was.
The above was SQL Server 2005 and any Windows / Excel combination.

Knowing that a lot of users already are familiar with Excel I did the same setup. I should say similar setup.
I created two ODBC system DSNs for ERP B, (32 and 64), named those same on all computers. Used With Windows NT Authentication.... Connection test worked fine.
Using SQL Server authentication did not work, but queries / reports could be created in Excel using this DSN.

The problem now comes when a user opens an Excel report created by administrator and tries reading the new ERP B SQL 2014 database / Windows 10.
Connection failed: error pops up.
SQLState: '28000'
SQL Server Error:18456
[Microsoft][ODBC SQL Server Driver][SQL Server[Login failed for user 'DOMAIN\user'.
After click on OK, in the SQL Server Login pop up, with Use Trusted Connection box checked, appears my domain name.
Even after the Use Trusted Connection box is unchecked and admin or user credentials are entered the connection doesn't work.

What settings am I missing on the server / local workstation / active directory that this connection doesn't work for domain users.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vadim RappCommented:
Verify that sql server 2014 has logon domain\group under Security, where group is any group your users belong to, with windows authentication and user mapping to the database representing ERP B.

You can experiment by opening Properties of the connection in excel, copying the connection string, and creating one-line .vbs file:


Run it and see if there's an error.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MezczyznaAuthor Commented:
This was it.
Security on the database itself.
Thank you.
MezczyznaAuthor Commented:
Thank you.
This was the resolution, adding security group from domain to logins on security and the security tree of the database being accessed.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.