Solved

Users get Login Failure when opening Excel file with External Data Connection to SQL Server

Posted on 2007-11-19
5
268 Views
Last Modified: 2010-04-21
I made a report in Excel 2003 with an External Data Connection to our SQL Server 2000.  The data connection is set to refresh when the file is opened.  It works fine for me because I have full access to the SQL Server and databases.
But when a user opens the worksheet it asks if they want to refresh external data and when they say "OK" they get a Login Failure.

How can I fix the Connection String or whatever I need to do so users can refresh the data?  

Thanks.
0
Comment
Question by:megnin
5 Comments
 
LVL 16

Expert Comment

by:SQL_SERVER_DBA
ID: 20314686
their gonna need read rights on the tables that refresh the excel file
0
 
LVL 59

Expert Comment

by:Saurabh Singh Teotia
ID: 20314698
Well...Try defining your query through this...

Go to --->Data-->Import External Data-->Import Data...

As soon you click on it...It will take u to your data sources..where u find some options...

Inwhich one of the option will be
"New SQl Connection"...Select that and click okay...

a Window will open which will ask for in step-1 the server name.
and in step-2 u can define the user name and password by which u want to connect to sql..so everytime the query will use this id and password only.......

Hope this helps...
0
 
LVL 42

Accepted Solution

by:
dqmq earned 500 total points
ID: 20314705
My recommendateion is to use windows authentication in your connection string.  Create a windows group for accessing the database and make everyone you want to have access a member of that group.  In Management Studio, add a database login for the group.      
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 20314934
0
 
LVL 1

Author Closing Comment

by:megnin
ID: 31410004
Worked like a champ after the user rebooted her computer.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now