?
Solved

Editing parameters of a connection file, but "edit query" is grayed out

Posted on 2015-02-05
6
Medium Priority
?
3,706 Views
Last Modified: 2015-02-10
I try to edit the query in a connect file in Excel, but the "Edit" button grayed out.
How to activate this button?

Thanks,

Jennifer
0
Comment
Question by:jfz2004
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 14

Expert Comment

by:Mark Bullock
ID: 40595236
Try this:
Right click on any cell of the Query output and go to Data > External Data Properties.  Click on the Connection Properties button and then your query will appear under Connection string of the Definition tab

Or this:
create a new query starting with Data tab | Get External Data group | From Other Sources dropdown > From Microsoft Query
0
 

Author Comment

by:jfz2004
ID: 40598315
Thank you!

I tried. And I can get the Connection string of the Definition tab without any problem.
The only problem is the "Edit" button on the definition tab is grayed out. So still need help.
0
 

Author Comment

by:jfz2004
ID: 40598329
I tried to create a new data source and chose SQL Server Login. But the drop-down list dores not have the server name I want to connect. Yet I can use SSMS to connect to the SQL Server.
Please help. Thanks a lot.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 18

Accepted Solution

by:
Simon earned 2000 total points
ID: 40600891
The SQL server name may not appear if the SQL browser service is not running. Try typing the name of the server (if it is the default instance on the server that you want to connect to).

I think you can use the 'edit' button to edit the query for MS Query type connections. i.e. those that you have stared using the 'From other data sources/Microsoft Query' option. Such queries show 'Database query' at the top of the definition tab. You can still query SQL Server data via this option.

If you choose the 'other data sources/SQL Server' option, you have to edit the query in the 'command text' box below the connection string box. You can't edit the query using MS query. that is why the 'Edit' button is disabled.
0
 

Author Comment

by:jfz2004
ID: 40601021
Thanks a lot. Let me try what you stated here.
Jennifer
0
 

Author Comment

by:jfz2004
ID: 40601437
here is what I did:

1. In a blank Excel, I click "From Other Sources";
2. Then choose "From Microsoft Query"
3. In "Choose Data Source" box, I choose the right database;
4. Then choose the table and columns via MS Query.
5. And it worked. I see the EDIT button shown.

Thanks a lot.

Jennifer
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

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

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

800 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